Function at 0x402910
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45692c
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x46b664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c0], eax
call fcn.00404e90
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, 7
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x402970
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.0040eba0
mov dword [ebp - 4], ebx
mov edx, esi
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ed90
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x4029b0
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
mov esi, eax
cmp dword [0x46f734], ebx
je 0x402a04
push 0x46f710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x46f6e8], esi
mov dword [0x46f6ec], 0x45baac
mov dword [0x46f6f0], 1
mov eax, 0x20
mov word [0x46f6f4], ax
mov byte [0x46f6f6], bl
lea ecx, [ebp - 0x378]
push ecx
call fcn.0040ddf0
add esp, 4
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x402a20
lea esi, [eax + 0x10]
jmp 0x402a22
xor esi, esi
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x20c]
call fcn.0040fac0
mov byte [ebp - 4], 4
push eax
push str.Commandline:
push esi
call fcn.0040de50
add esp, 8
push eax
call fcn.0040e870
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
jb 0x402a63
mov eax, dword [ebp - 0x30]
push eax
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x378]
push edx
call fcn.00424d80
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.0040db60
lea eax, [ebp - 0x318]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 2
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov ecx, eax
push ecx
call fcn.0042fd7b
add esp, 4
cmp byte [ebp - 0x1a0], bl
jne 0x4033c4
cmp byte [ebp - 0x1a8], bl
je 0x4033c4
cmp byte [ebp - 0x1a1], bl
je 0x402b3f
mov eax, str.Command_Line_Switches_for_the_SAP_Smart_Extractor:
lea ecx, [ebp - 0x30]
call fcn.0040ec90
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c0]
push edx
lea esi, [ebp - 0x30]
call fcn.004038b0
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x402b1c
mov eax, dword [ebp - 0x30]
push eax
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor ecx, ecx
mov word [ebp - 0x30], cx
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x20c]
push edx
jmp 0x4034e2
lea esi, [ebp - 0x20c]
call fcn.0040fe60
test al, al
jne 0x402d2c
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0040fc30
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x30]
call fcn.00404410
mov byte [ebp - 4], 0xe
lea esi, [ebp - 0x30]
call fcn.004157f0
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x4c]
push edx
call fcn.00415780
push 0x20
push str.SapSelfX
call edi
push eax
call fcn.00424d30
lea eax, [ebp - 0x378]
push eax
call fcn.0040ddf0
add esp, 0x10
mov byte [ebp - 4], 0xf
cmp eax, ebx
je 0x402bb3
lea ebx, [eax + 0x10]
push str.The_cabinet_file_has_been_successfully_detached_to:
push ebx
call fcn.0040de50
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0040e870
add esp, 0x10
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x378]
push edx
call fcn.0040dd70
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.00415780
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00403510
mov eax, 1
jmp 0x4034e9
cmp byte [ebp - 0x1a6], bl
jne 0x402d94
cmp dword [ebp - 0x18c], ebx
jne 0x402d94
lea edx, [ebp - 0x2c8]
push edx
call fcn.004076b0
add esp, 4
mov byte [ebp - 4], 0x14
push eax
mov edi, dword [ebp - 0x2c0]
lea esi, [edi + 0x28]
call fcn.00407790
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c8]
call fcn.00405650
mov dword [ebp - 0x2cc], edi
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.00407840
add esp, 8
lea eax, [ebp - 0x2c4]
call fcn.00405910
lea edx, [ebp - 0x4c]
push edx
xor ecx, ecx
call fcn.0041acb0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x15
call fcn.00404470
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040ff20
test al, al
sete al
movzx ecx, al
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.00429a20
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x4c]
push edx
call fcn.00415780
lea ecx, [ebp - 0x20c]
cmp dword [ebp - 0x18c], ebx
je 0x402e9c
lea eax, [ebp - 0x4c]
push eax
call fcn.00410030
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x402e01
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x378]
push ecx
call fcn.00405940
mov bl, 0x1a
mov byte [ebp - 4], bl
lea edx, [ebp - 0x4c]
push edx
call fcn.00415780
lea ecx, [ebp - 0x2bc]
call fcn.0042b930
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405720
mov byte [ebp - 4], 0x1b
mov eax, 0x45bd38
lea ecx, [ebp - 0x378]
push ecx
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
lea esi, [ebp - 0x2c8]
call fcn.004078c0
add esp, 0x10
mov byte [ebp - 4], bl
lea esi, [ebp - 0x24]
call fcn.004066a0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x378]
call fcn.00403690
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2bc]
push eax
call fcn.0042a020
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00403510
xor eax, eax
jmp 0x4034e9
lea edx, [ebp - 0x84]
push edx
call fcn.0040fcc0
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x74], ebx
jne 0x402ee1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x2c0]
call fcn.00401f30
mov byte [ebp - 4], 0x1d
push ebx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00401a90
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x4c]
push ecx
call fcn.00415780
push 0x20
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00424d30
lea edx, [ebp - 0x420]
push edx
call fcn.0040ddf0
add esp, 0x10
mov byte [ebp - 4], 0x1e
cmp eax, ebx
je 0x402f10
add eax, 0x10
jmp 0x402f12
xor eax, eax
push str.Extracting_cabinet_to_
push eax
call fcn.0040de50
mov esi, eax
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0040e870
push 0x45bd3c
push esi
call fcn.0040de50
add esp, 0x18
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040dd70
mov byte [ebp - 0x237], 1
push ebx
lea edx, [ebp - 0x84]
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x254]
call fcn.00401a90
lea edi, [ebp - 0x2bc]
call fcn.0042aae0
test al, al
jne 0x402fe6
push 0x45
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00424d30
lea eax, [ebp - 0x420]
push eax
call fcn.0040ddf0
add esp, 0x10
mov byte [ebp - 4], 0x1f
cmp eax, ebx
je 0x402fa3
lea ebx, [eax + 0x10]
push str.Extraction_of_attached_cabinet_failed_
push ebx
call fcn.0040de50
add esp, 8
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040dd70
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x84]
push edx
call fcn.00415780
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2bc]
push eax
call fcn.0042a020
jmp 0x402beb
lea ecx, [ebp - 0x20c]
call fcn.0040ff20
test al, al
je 0x402fc1
mov eax, str.SapSx.cfg
lea ecx, [ebp - 0x30]
call fcn.0040ec90
mov byte [ebp - 4], 0x20
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0xa0]
call fcn.00415c80
mov byte [ebp - 4], 0x22
lea esi, [ebp - 0x30]
call fcn.00401630
mov ecx, edi
call fcn.00416f40
test al, al
jne 0x4030df
push 0x45
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00424d30
lea eax, [ebp - 0x420]
push eax
call fcn.0040ddf0
add esp, 0x10
mov byte [ebp - 4], 0x23
cmp eax, ebx
je 0x403065
add eax, 0x10
jmp 0x403067
xor eax, eax
push str.SapSx.cfg_could_not_be_found_in_path:
push eax
call fcn.0040de50
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.0040e870
add esp, 0x10
mov byte [ebp - 4], 0x22
lea edx, [ebp - 0x420]
push edx
call fcn.0040dd70
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0xa0]
push eax
call fcn.00415780
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x84]
push ecx
call fcn.00415780
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2bc]
push edx
call fcn.0042a020
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20c]
push eax
call fcn.00403510
mov eax, 1
jmp 0x4034e9
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
xor ecx, ecx
mov word [ebp - 0x68], cx
push ebx
lea edx, [ebp - 0xa0]
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401a90
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0xd8]
push eax
lea edi, [ebp - 0x20c]
call fcn.0040fba0
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x68]
call fcn.004109e0
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, eax
call fcn.00415620
mov byte [ebp - 4], 0x2a
lea edx, [ebp - 0x4c]
push edx
call fcn.00415780
cmp dword [ebp - 0xe4], ebx
jne 0x403248
push 0x45
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00424d30
lea eax, [ebp - 0x420]
push eax
call fcn.0040ddf0
add esp, 0x10
mov byte [ebp - 4], 0x2b
cmp eax, ebx
je 0x403189
add eax, 0x10
jmp 0x40318b
xor eax, eax
push str.Could_not_determine_application_from_config_file
push eax
call fcn.0040de50
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.0040e870
add esp, 0x10
mov byte [ebp - 4], 0x2a
lea edx, [ebp - 0x420]
push edx
call fcn.0040dd70
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0xf4]
push eax
call fcn.00415780
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0xd8]
call fcn.00401630
mov byte [ebp - 4], 0x22
cmp dword [ebp - 0x54], 8
jb 0x4031eb
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
xor edx, edx
mov word [ebp - 0x68], dx
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0xa0]
push eax
call fcn.00415780
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x84]
push ecx
call fcn.00415780
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2bc]
push edx
call fcn.0042a020
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20c]
push eax
call fcn.00403510
mov eax, 1
jmp 0x4034e9
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x68]
call fcn.004100b0
mov byte [ebp - 4], 0x2e
mov edi, eax
mov esi, dword [ebp - 0x2c0]
call fcn.0040b5a0
mov byte [ebp - 4], 0x2a
lea esi, [ebp - 0x4c]
call fcn.00401630
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x40328a
lea eax, [ebp - 0x84]
push eax
push str.TEMP_EXTRACT
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0xf4]
lea edx, [ebp - 0x4c]
call fcn.0041af50
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
call fcn.00415680
mov byte [ebp - 4], 0x31
lea esi, [ebp - 0x4c]
call fcn.00401630
lea esi, [ebp - 0xbc]
call fcn.00415c30
test al, al
jne 0x4032fe
lea edx, [ebp - 0x84]
push edx
mov ecx, esi
lea edi, [ebp - 0x4c]
call fcn.00415c80
mov byte [ebp - 4], 0x32
push ebx
push eax
or eax, 0xffffffff
mov ecx, esi
call fcn.00401a90
mov byte [ebp - 4], 0x31
mov eax, edi
push eax
call fcn.00415780
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x68]
call fcn.00410bc0
movzx edx, al
push edx
mov eax, dword [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0xbc]
call fcn.00403b00
mov edi, eax
mov byte [ebp - 4], 0x2a
lea ecx, [ebp - 0xbc]
push ecx
call fcn.00415780
mov byte [ebp - 4], 0x27
lea edx, [ebp - 0xf4]
push edx
call fcn.00415780
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0xd8]
call fcn.00401630
mov byte [ebp - 4], 0x22
cmp dword [ebp - 0x54], 8
jb 0x40336a
mov eax, dword [ebp - 0x68]
push eax
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
xor ecx, ecx
mov word [ebp - 0x68], cx
mov byte [ebp - 4], 0x1c
lea edx, [ebp - 0xa0]
push edx
call fcn.00415780
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x84]
push eax
call fcn.00415780
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.0042a020
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x20c]
push edx
call fcn.00403510
mov eax, edi
jmp 0x4034e9
call edi
mov esi, eax
cmp dword [0x46f734], ebx
je 0x403406
push 0x46f710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x46f6e8], esi
mov dword [0x46f6ec], 0x45baac
mov dword [0x46f6f0], 1
mov eax, 0x45
mov word [0x46f6f4], ax
mov byte [0x46f6f6], bl
lea ecx, [ebp - 0x378]
push ecx
call fcn.0040ddf0
add esp, 4
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x403422
add eax, 0x10
jmp 0x403424
xor eax, eax
push str.Commandline_is_not_valid.
push eax
call fcn.0040de50
mov byte [ebp - 4], 8
lea edx, [ebp - 0x378]
push edx
call fcn.00424d80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.0040db60
lea eax, [ebp - 0x318]
mov dword [ebp - 0x2c4], eax
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [ebp - 4], 2
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
mov ecx, eax
push ecx
call fcn.0042fd7b
add esp, 4
mov edi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
push 0x19
mov eax, str.Commandline_is_not_valid.
lea esi, [ebp - 0x30]
call fcn.0040eba0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.004038b0
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x4034c8
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20c]
push eax
call fcn.00403510
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00431de5
mov esp, ebp
pop ebp
ret 4