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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45722c
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x46c664]
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 0x402940
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x30]
call fcn.0040e990
mov dword [ebp - 4], ebx
mov edx, esi
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040eb80
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x402980
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0043266a
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 [0x470734], ebx
je 0x4029d4
push 0x470710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x4706e8], esi
mov dword [0x4706ec], 0x45caac
mov dword [0x4706f0], 1
mov eax, 0x20
mov word [0x4706f4], ax
mov byte [0x4706f6], bl
lea ecx, [ebp - 0x378]
push ecx
call fcn.0040dbc0
add esp, 4
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x4029f0
lea esi, [eax + 0x10]
jmp 0x4029f2
xor esi, esi
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x20c]
call fcn.0040f8b0
mov byte [ebp - 4], 4
push eax
push str.Commandline:
push esi
call fcn.0040dc20
add esp, 8
push eax
call fcn.0040e660
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 8
jb 0x402a33
mov eax, dword [ebp - 0x30]
push eax
call fcn.0043266a
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.004254d0
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.0040d930
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.0043060b
add esp, 4
cmp byte [ebp - 0x1a0], bl
jne 0x4033bd
cmp byte [ebp - 0x1a8], bl
je 0x4033bd
cmp byte [ebp - 0x1a1], bl
je 0x402b0f
mov eax, str.Command_Line_Switches_for_the_SAP_Smart_Extractor:
lea ecx, [ebp - 0x30]
call fcn.0040ea80
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x2c0]
push edx
lea esi, [ebp - 0x30]
call fcn.004038a0
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x402aec
mov eax, dword [ebp - 0x30]
push eax
call fcn.0043266a
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 0x4034db
lea esi, [ebp - 0x20c]
call fcn.0040fc50
test al, al
jne 0x402cf9
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.0040fa20
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.00415730
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x4c]
push edx
call fcn.004156c0
push 0x20
push str.SapSelfX
call edi
push eax
call fcn.00425480
lea eax, [ebp - 0x378]
push eax
call fcn.0040dbc0
add esp, 0x10
mov byte [ebp - 4], 0xf
cmp eax, ebx
je 0x402b83
lea ebx, [eax + 0x10]
push str.The_cabinet_file_has_been_successfully_detached_to:
push ebx
call fcn.0040dc20
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0040e660
add esp, 0x10
mov byte [ebp - 4], 0xd
lea edx, [ebp - 0x378]
push edx
call fcn.0040db40
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.004156c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00403500
xor eax, eax
jmp 0x4034e2
cmp byte [ebp - 0x1a6], bl
jne 0x402d61
cmp dword [ebp - 0x18c], ebx
jne 0x402d61
lea edx, [ebp - 0x2c8]
push edx
call fcn.00407510
add esp, 4
mov byte [ebp - 4], 0x14
push eax
mov edi, dword [ebp - 0x2c0]
lea esi, [edi + 0x28]
call fcn.004075f0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c8]
call fcn.00405440
mov dword [ebp - 0x2cc], edi
lea eax, [ebp - 0x2cc]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.004076a0
add esp, 8
lea eax, [ebp - 0x2c4]
call fcn.00405740
lea edx, [ebp - 0x4c]
push edx
xor ecx, ecx
call fcn.0041b0c0
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x15
call fcn.00404470
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040fd10
test al, al
sete al
movzx ecx, al
push ecx
lea ecx, [ebp - 0x2bc]
call fcn.0042a270
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x4c]
push edx
call fcn.004156c0
lea ecx, [ebp - 0x20c]
cmp dword [ebp - 0x18c], ebx
je 0x402e54
lea eax, [ebp - 0x4c]
push eax
call fcn.0040fe20
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x14], 8
jb 0x402dce
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x378]
push ecx
call fcn.00405770
mov bl, 0x1a
mov byte [ebp - 4], bl
lea edx, [ebp - 0x4c]
push edx
call fcn.004156c0
lea ecx, [ebp - 0x2bc]
call fcn.0042c180
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405510
mov byte [ebp - 4], 0x1b
mov eax, 0x45cd38
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.00407720
add esp, 0x10
mov byte [ebp - 4], bl
lea esi, [ebp - 0x24]
call fcn.004055f0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x378]
call fcn.00403680
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2bc]
push eax
call fcn.0042a870
jmp 0x402bbb
lea edx, [ebp - 0x84]
push edx
call fcn.0040fab0
mov byte [ebp - 4], 0x1c
cmp dword [ebp - 0x74], ebx
jne 0x402e99
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x2c0]
call fcn.00401f00
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.004156c0
push 0x20
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00425480
lea edx, [ebp - 0x420]
push edx
call fcn.0040dbc0
add esp, 0x10
mov byte [ebp - 4], 0x1e
cmp eax, ebx
je 0x402ec8
add eax, 0x10
jmp 0x402eca
xor eax, eax
push str.Extracting_cabinet_to_
push eax
call fcn.0040dc20
mov esi, eax
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.0040e660
push 0x45cd3c
push esi
call fcn.0040dc20
add esp, 0x18
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040db40
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.0042b330
test al, al
jne 0x402fba
push 0x45
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00425480
lea eax, [ebp - 0x420]
push eax
call fcn.0040dbc0
add esp, 0x10
mov byte [ebp - 4], 0x1f
cmp eax, ebx
je 0x402f5f
lea ebx, [eax + 0x10]
push str.Extraction_of_attached_cabinet_failed_
push ebx
call fcn.0040dc20
add esp, 8
mov byte [ebp - 4], 0x1c
lea ecx, [ebp - 0x420]
push ecx
call fcn.0040db40
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x84]
push edx
call fcn.004156c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2bc]
push eax
call fcn.0042a870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00403500
mov eax, 1
jmp 0x4034e2
lea ecx, [ebp - 0x20c]
call fcn.0040fd10
test al, al
jne 0x402fee
mov byte [ebp - 4], 0x17
lea edx, [ebp - 0x84]
push edx
call fcn.004156c0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2bc]
push eax
call fcn.0042a870
jmp 0x402bbb
mov eax, str.SapSx.cfg
lea ecx, [ebp - 0x30]
call fcn.0040ea80
mov byte [ebp - 4], 0x20
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0xa0]
call fcn.00415bc0
mov byte [ebp - 4], 0x22
lea esi, [ebp - 0x30]
call fcn.00401620
mov ecx, edi
call fcn.00416e80
test al, al
jne 0x4030d8
push 0x45
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00425480
lea eax, [ebp - 0x420]
push eax
call fcn.0040dbc0
add esp, 0x10
mov byte [ebp - 4], 0x23
cmp eax, ebx
je 0x40305e
add eax, 0x10
jmp 0x403060
xor eax, eax
push str.SapSx.cfg_could_not_be_found_in_path:
push eax
call fcn.0040dc20
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.0040e660
add esp, 0x10
mov byte [ebp - 4], 0x22
lea edx, [ebp - 0x420]
push edx
call fcn.0040db40
mov byte [ebp - 4], 0x1c
lea eax, [ebp - 0xa0]
push eax
call fcn.004156c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x84]
push ecx
call fcn.004156c0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2bc]
push edx
call fcn.0042a870
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20c]
push eax
call fcn.00403500
mov eax, 1
jmp 0x4034e2
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.0040f990
mov byte [ebp - 4], 0x27
lea ecx, [ebp - 0xd8]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x68]
call fcn.004107d0
mov byte [ebp - 4], 0x28
lea ecx, [ebp - 0xf4]
push ecx
mov ecx, eax
call fcn.00415560
mov byte [ebp - 4], 0x2a
lea edx, [ebp - 0x4c]
push edx
call fcn.004156c0
cmp dword [ebp - 0xe4], ebx
jne 0x403241
push 0x45
push str.SapSelfX
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.00425480
lea eax, [ebp - 0x420]
push eax
call fcn.0040dbc0
add esp, 0x10
mov byte [ebp - 4], 0x2b
cmp eax, ebx
je 0x403182
add eax, 0x10
jmp 0x403184
xor eax, eax
push str.Could_not_determine_application_from_config_file
push eax
call fcn.0040dc20
lea ecx, [ebp - 0xa0]
push ecx
push eax
call fcn.0040e660
add esp, 0x10
mov byte [ebp - 4], 0x2a
lea edx, [ebp - 0x420]
push edx
call fcn.0040db40
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0xf4]
push eax
call fcn.004156c0
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0xd8]
call fcn.00401620
mov byte [ebp - 4], 0x22
cmp dword [ebp - 0x54], 8
jb 0x4031e4
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0043266a
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.004156c0
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x84]
push ecx
call fcn.004156c0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2bc]
push edx
call fcn.0042a870
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x20c]
push eax
call fcn.00403500
mov eax, 1
jmp 0x4034e2
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x68]
call fcn.0040fea0
mov byte [ebp - 4], 0x2e
mov edi, eax
mov esi, dword [ebp - 0x2c0]
call fcn.0040b350
mov byte [ebp - 4], 0x2a
lea esi, [ebp - 0x4c]
call fcn.00401620
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x403283
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.0041b360
mov byte [ebp - 4], 0x2f
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, eax
call fcn.004155c0
mov byte [ebp - 4], 0x31
lea esi, [ebp - 0x4c]
call fcn.00401620
lea esi, [ebp - 0xbc]
call fcn.00415b70
test al, al
jne 0x4032f7
lea edx, [ebp - 0x84]
push edx
mov ecx, esi
lea edi, [ebp - 0x4c]
call fcn.00415bc0
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.004156c0
lea ecx, [ebp - 0xd8]
push ecx
lea ecx, [ebp - 0x68]
call fcn.004109b0
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.004156c0
mov byte [ebp - 4], 0x27
lea edx, [ebp - 0xf4]
push edx
call fcn.004156c0
mov byte [ebp - 4], 0x26
lea esi, [ebp - 0xd8]
call fcn.00401620
mov byte [ebp - 4], 0x22
cmp dword [ebp - 0x54], 8
jb 0x403363
mov eax, dword [ebp - 0x68]
push eax
call fcn.0043266a
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.004156c0
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x84]
push eax
call fcn.004156c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2bc]
push ecx
call fcn.0042a870
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp - 0x20c]
push edx
call fcn.00403500
mov eax, edi
jmp 0x4034e2
call edi
mov esi, eax
cmp dword [0x470734], ebx
je 0x4033ff
push 0x470710
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x4706e8], esi
mov dword [0x4706ec], 0x45caac
mov dword [0x4706f0], 1
mov eax, 0x45
mov word [0x4706f4], ax
mov byte [0x4706f6], bl
lea ecx, [ebp - 0x378]
push ecx
call fcn.0040dbc0
add esp, 4
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x40341b
add eax, 0x10
jmp 0x40341d
xor eax, eax
push str.Commandline_is_not_valid.
push eax
call fcn.0040dc20
mov byte [ebp - 4], 8
lea edx, [ebp - 0x378]
push edx
call fcn.004254d0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.0040d930
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.0043060b
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.0040e990
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x2c0]
push eax
call fcn.004038a0
mov esi, eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], 8
jb 0x4034c1
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0043266a
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.00403500
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.00432675
mov esp, ebp
pop ebp
ret 4