Function at 0x418940
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x459d8a
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, ebx
call fcn.00406b10
push eax
push 0x462734
push 0x400
lea eax, [esp + 0xc0]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x44]
call fcn.0042a750
xor ebp, ebp
mov dword [esp + 0x4c0], ebp
mov edi, 7
lea eax, [esp + 0xb4]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4189d2
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xb8]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov edx, esi
push ebp
push edx
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0x4c8], 1
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x418a23
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x5c], esi
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x418a3e
lea edx, [esp + 0x48]
mov edi, dword [0x471b30]
cmp edi, ebp
je 0x418a80
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x418a50
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x418a93
mov eax, dword [esp + 0x48]
push eax
call fcn.0043ef40
add esp, 4
push 0x8c
push ebp
push 0x471ed8
call fcn.00443e10
add esp, 0xc
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c0], 2
cmp dword [ebx + 0x18], esi
mov dword [esp + 0x30], ebp
jb 0x418acb
mov eax, dword [ebx + 4]
jmp 0x418ace
lea eax, [ebx + 4]
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [esp + 0x30], ebp
mov ebx, eax
jle 0x418b87
jmp 0x418af0
mov edx, dword [ebx + edi*4]
push 0x462750
push edx
call fcn.0043f95c
add esp, 8
test eax, eax
jne 0x418b11
mov dword [0x471ee4], 1
jmp 0x418b7a
mov ecx, dword [ebx + edi*4]
mov eax, ecx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bp
jne 0x418b30
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x4c]
call fcn.00406f20
mov eax, esi
push eax
lea esi, [esp + 0x38]
mov byte [esp + 0x4c4], 3
call fcn.00419220
mov byte [esp + 0x4c0], 2
cmp dword [esp + 0x5c], 8
jb 0x418b7a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0043ef40
add esp, 4
add edi, 1
cmp edi, dword [esp + 0x30]
jl 0x418af0
push 5
mov edi, 7
push str.path2
lea esi, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
call fcn.00406f20
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c4], 4
call fcn.00418600
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x471f08
mov byte [esp + 0x4c8], 5
call fcn.00406cc0
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jb 0x418bf1
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
mov byte [esp + 0x4c0], 2
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jb 0x418c19
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0043ef40
add esp, 4
push 4
push str.path
lea esi, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
call fcn.00406f20
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c4], 6
call fcn.00418600
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x471eec
mov byte [esp + 0x4c8], 7
call fcn.00406cc0
cmp dword [esp + 0x2c], ebx
jb 0x418c79
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
mov byte [esp + 0x4c0], 2
cmp dword [esp + 0x5c], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jb 0x418ca1
mov ecx, dword [esp + 0x48]
push ecx
call fcn.0043ef40
add esp, 4
push 3
push 0x462770
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
call fcn.00406f20
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x64]
mov byte [esp + 0x4c4], 8
call fcn.00418600
add esp, 4
mov byte [esp + 0x4c0], 0xa
cmp dword [esp + 0x2c], ebx
jb 0x418cf4
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x74], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
je 0x418d2e
lea edi, [esp + 0x60]
call fcn.00426e10
test eax, eax
je 0x418d22
mov ecx, edi
call fcn.00426e60
mov edi, 7
jmp 0x418d33
call fcn.00425cb0
mov edi, 7
jmp 0x418d33
call fcn.00425cb0
push 2
push 0x462778
lea esi, [esp + 0x4c]
mov dword [0x471f60], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
call fcn.00406f20
mov ecx, esi
push ecx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4c4], 0xb
call fcn.00418600
add esp, 4
mov byte [esp + 0x4c0], 0xd
cmp dword [esp + 0x5c], ebx
jb 0x418d8e
mov edx, dword [esp + 0x48]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xac], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x418db5
lea ecx, [esp + 0x98]
call fcn.00426e60
mov dword [0x471f5c], eax
lea eax, [esp + 0x14]
push eax
call fcn.00422090
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x472080
mov byte [esp + 0x4c8], 0xe
call fcn.00406cc0
mov byte [esp + 0x4c0], 0xd
cmp dword [esp + 0x2c], ebx
jb 0x418df2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [0x471f00], ebp
jne 0x418e19
cmp dword [0x472094], ebp
jne 0x418e07
call fcn.00422490
push 0xffffffffffffffff
push ebp
mov eax, 0x472080
mov ecx, 0x471eec
call fcn.00406cc0
push 6
push str.notify
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
call fcn.00406f20
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x80]
mov byte [esp + 0x4c4], 0xf
call fcn.00418600
add esp, 4
cmp dword [esp + 0x2c], ebx
jb 0x418e67
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x94], ebx
mov eax, dword [esp + 0x80]
jae 0x418e7e
lea eax, [esp + 0x80]
push eax
call fcn.0043fead
add esp, 4
cmp dword [esp + 0x94], ebx
mov dword [0x471ee8], eax
jb 0x418ea5
mov ecx, dword [esp + 0x80]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xb0], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
jb 0x418ed4
mov edx, dword [esp + 0x9c]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], bp
jb 0x418efd
mov eax, dword [esp + 0x64]
push eax
call fcn.0043ef40
add esp, 4
mov eax, dword [esp + 0x38]
cmp eax, ebp
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebp
mov word [esp + 0x64], bp
je 0x418f30
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.00419da0
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call fcn.0043ef40
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x4b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4a0]
xor ecx, esp
call fcn.0043ef12
add esp, 0x4b0
ret