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

Disassembly:
push 0xffffffffffffffff
push 0x45c5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x4713c0]
xor eax, esp
mov dword [esp + 0x4a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4713c0]
xor eax, esp
push eax
lea eax, [esp + 0x4b8]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, ebx
call fcn.00406dc0
push eax
push 0x4646f4
lea eax, [esp + 0xbc]
push 0x200
push eax
call fcn.004414db
xor ebp, ebp
add esp, 0x10
lea ecx, [esp + 0x44]
mov word [esp + 0x4b2], bp
call fcn.0042bd40
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 0x418a65
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xb8]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f80
mov edx, esi
push ebp
push edx
or eax, 0xffffffff
lea esi, [esp + 0x4c]
mov byte [esp + 0x4c8], 1
call fcn.00406df0
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x418ab6
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
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 0x418ad1
lea edx, [esp + 0x48]
mov edi, dword [0x474bb0]
cmp edi, ebp
je 0x418b10
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x418ae0
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.004422ed
mov edx, dword [0x474bb0]
push edx
call fcn.004428a9
add esp, 0x14
mov esi, 8
cmp dword [esp + 0x5c], esi
jb 0x418b23
mov eax, dword [esp + 0x48]
push eax
call fcn.004415cb
add esp, 4
push 0xa8
push ebp
push 0x474f60
call fcn.00446fa0
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 0x418b5b
mov eax, dword [ebx + 4]
jmp 0x418b5e
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 0x418c17
jmp 0x418b80
mov edx, dword [ebx + edi*4]
push 0x464710
push edx
call fcn.00442024
add esp, 8
test eax, eax
jne 0x418ba1
mov dword [0x474f6c], 1
jmp 0x418c0a
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 0x418bc0
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x4c]
call fcn.00406f80
mov eax, esi
push eax
lea esi, [esp + 0x38]
mov byte [esp + 0x4c4], 3
call fcn.004193f0
mov byte [esp + 0x4c0], 2
cmp dword [esp + 0x5c], 8
jb 0x418c0a
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004415cb
add esp, 4
add edi, 1
cmp edi, dword [esp + 0x30]
jl 0x418b80
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.00406f80
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c4], 4
call fcn.00418690
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x474fac
mov byte [esp + 0x4c8], 5
call fcn.00406d10
mov ebx, 8
cmp dword [esp + 0x2c], ebx
jb 0x418c81
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
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 0x418ca9
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004415cb
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.00406f80
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c4], 6
call fcn.00418690
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x474f74
mov byte [esp + 0x4c8], 7
call fcn.00406d10
cmp dword [esp + 0x2c], ebx
jb 0x418d09
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
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 0x418d31
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004415cb
add esp, 4
push 3
push 0x464730
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
call fcn.00406f80
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x64]
mov byte [esp + 0x4c4], 8
call fcn.00418690
add esp, 4
mov byte [esp + 0x4c0], 0xa
cmp dword [esp + 0x2c], ebx
jb 0x418d84
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
add esp, 4
push 0xffffffffffffffff
push ebp
mov eax, 0x474f74
mov ecx, 0x474f90
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebp
mov word [esp + 0x20], bp
call fcn.00406d10
mov eax, dword [0x474fa4]
cmp eax, ebp
je 0x418e1f
jbe 0x418de4
lea esi, [eax - 1]
cmp esi, eax
jbe 0x418dba
call fcn.00441e46
cmp dword [0x474fa8], ebx
mov eax, dword [0x474f94]
jae 0x418dcc
mov eax, 0x474f94
cmp word [eax + esi*2], 0x5c
je 0x418de4
push 1
push 0x4624bc
mov ecx, 0x474f90
call fcn.00406eb0
lea ecx, [esp + 0x44]
call fcn.00423780
push ebp
push eax
or eax, 0xffffffff
mov esi, 0x474f90
mov byte [esp + 0x4c8], 0xb
call fcn.00406df0
mov byte [esp + 0x4c0], 0xa
cmp dword [esp + 0x5c], ebx
jb 0x418e1f
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x74], ebp
je 0x418e4c
lea edi, [esp + 0x60]
call fcn.004285d0
test eax, eax
je 0x418e40
mov ecx, edi
call fcn.00428620
mov edi, 7
jmp 0x418e51
call fcn.00427280
mov edi, 7
jmp 0x418e51
call fcn.00427280
push 2
push 0x464738
lea esi, [esp + 0x4c]
mov dword [0x475004], eax
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x50], bp
call fcn.00406f80
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x9c]
mov byte [esp + 0x4c4], 0xc
call fcn.00418690
add esp, 4
mov byte [esp + 0x4c0], 0xe
cmp dword [esp + 0x5c], ebx
jb 0x418eac
mov eax, dword [esp + 0x48]
push eax
call fcn.004415cb
add esp, 4
cmp dword [esp + 0xac], ebp
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov word [esp + 0x48], bp
je 0x418ed3
lea ecx, [esp + 0x98]
call fcn.00428620
mov dword [0x475000], eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00423900
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x475120
mov byte [esp + 0x4c8], 0xf
call fcn.00406d10
mov byte [esp + 0x4c0], 0xe
cmp dword [esp + 0x2c], ebx
jb 0x418f10
mov edx, dword [esp + 0x18]
push edx
call fcn.004415cb
add esp, 4
cmp dword [0x474f88], ebp
jne 0x418feb
cmp dword [0x475134], ebp
jne 0x418f29
call fcn.00423d00
push 0xffffffffffffffff
push ebp
mov eax, 0x475120
mov ecx, 0x474f90
call fcn.00406d10
push 0x474f90
lea eax, [esp + 0x18]
call fcn.0041dd10
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x474f74
mov byte [esp + 0x4c8], 0x10
call fcn.00406d10
mov byte [esp + 0x4c0], 0xe
cmp dword [esp + 0x2c], ebx
jb 0x418f7c
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
add esp, 4
mov eax, dword [0x474f88]
cmp eax, ebp
jbe 0x418feb
lea esi, [eax - 1]
cmp esi, eax
jbe 0x418f91
call fcn.00441e46
cmp dword [0x474f8c], ebx
mov eax, dword [0x474f78]
jae 0x418fa3
mov eax, 0x474f78
cmp word [eax + esi*2], 0x5c
jne 0x418feb
push esi
push 0x474f74
xor ecx, ecx
lea esi, [esp + 0x1c]
call fcn.00415cf0
push 0xffffffffffffffff
push ebp
mov ecx, 0x474f74
mov byte [esp + 0x4c8], 0x11
call fcn.00406d10
mov byte [esp + 0x4c0], 0xe
cmp dword [esp + 0x2c], ebx
jb 0x418feb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004415cb
add esp, 4
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.00406f80
mov edx, esi
push edx
lea edx, [esp + 0x38]
lea ecx, [esp + 0x80]
mov byte [esp + 0x4c4], 0x12
call fcn.00418690
add esp, 4
cmp dword [esp + 0x2c], ebx
jb 0x419039
mov eax, dword [esp + 0x18]
push eax
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x94], ebx
mov eax, dword [esp + 0x80]
jae 0x419050
lea eax, [esp + 0x80]
push eax
call fcn.00442467
add esp, 4
cmp dword [esp + 0x94], ebx
mov dword [0x474f70], eax
jb 0x419077
mov ecx, dword [esp + 0x80]
push ecx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0xb0], ebx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebp
mov word [esp + 0x80], bp
jb 0x4190a6
mov edx, dword [esp + 0x9c]
push edx
call fcn.004415cb
add esp, 4
cmp dword [esp + 0x78], ebx
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebp
mov word [esp + 0x9c], bp
jb 0x4190cf
mov eax, dword [esp + 0x64]
push eax
call fcn.004415cb
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 0x419102
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x3c]
push ecx
call fcn.00419fa0
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
call fcn.004415cb
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.004414cc
add esp, 0x4b0
ret