Function at 0x474c50
Capabilities:
Create process on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x8c0
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x101f
push eax
mov dword [esp + 0x34], ecx
call esi
push 0
mov edi, eax
push 0
push 0x1200
push edi
call esi
mov esi, eax
lea ebx, [esi*4 + 4]
push ebx
call fcn.004c58a5
push ebx
mov ebp, eax
call fcn.004c58a5
add esp, 8
mov ebx, eax
mov dword [esp + 0x28], ebx
push ebp
push esi
push 0x1211
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x47590c
mov ecx, dword [0x4e3a2c]
xor eax, eax
mov dword [esp + 0xd0], ecx
mov ecx, 0x1ff
lea edi, [esp + 0xd4]
push 0xffffffffffffffff
rep stosd dword es:[edi], eax
mov ecx, 0x15
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
push 0xffffffffffffffff
mov ecx, 0x16
lea edi, [esp + 0x80]
push 1
push str.ExportIndex
push 0x4db058
rep stosd dword es:[edi], eax
mov dword [esp + 0x8c], 0x58
mov dword [esp + 0xa4], 1
mov dword [esp + 0xc0], 2
call fcn.00480e80
add esp, 0x14
mov dword [esp + 0x90], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp + 0x80], eax
mov eax, 0x104
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x78]
lea edx, [esp + 0xd0]
push eax
mov dword [esp + 0xac], str.Export_TXT_CSV_HTML_XLS
mov dword [esp + 0x98], edx
mov dword [esp + 0x88], 0x4dc868
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
test eax, eax
je 0x47590c
mov eax, dword [esp + 0x90]
push 0
push eax
push str.ExportIndex
push 0x4db058
mov dword [esp + 0x60], eax
call fcn.00480e00
mov ecx, dword [0x4d9540]
add esp, 0x10
test esi, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], ecx
jle 0x4750d6
mov dword [esp + 0x48], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x10]
push 0
mov eax, dword [edx]
push eax
mov eax, dword [esp + 0x2c]
push 0x101d
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 5
jle 0x4750b8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.004521e0
test eax, eax
je 0x4750b8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
push edx
push eax
call fcn.004512d0
mov ecx, 0x4da084
test ecx, ecx
je 0x474fd7
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x474fd7
mov edx, 0x4da038
test edx, edx
jne 0x474e4e
mov dword [esp + 0x2c], edx
jmp 0x474e5d
push 0x4da038
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov eax, dword [esi - 8]
lea ebp, [esi + eax*2]
cmp esi, ebp
jae 0x474fdb
push 0x4da084
push esi
call fcn.004c546f
add esp, 8
test eax, eax
je 0x474e99
lea esi, [eax + ebx*2]
push 0x4da084
push esi
inc edi
call fcn.004c546f
add esp, 8
test eax, eax
jne 0x474e83
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x474e71
test edi, edi
jle 0x474fd7
lea ecx, [esp + 0x1c]
call fcn.00401380
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x38], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x4c], ebp
cmp eax, ebp
jl 0x474ee0
cmp dword [esi - 0xc], 1
jle 0x474f1e
lea ecx, [esi - 0xc]
push ebp
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x20]
call fcn.004012f0
test eax, eax
je 0x474fd7
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x1c]
push eax
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401350
mov esi, dword [esp + 0x1c]
mov eax, dword [esi - 8]
lea eax, [esi + eax*2]
cmp esi, eax
mov dword [esp + 0x3c], eax
jae 0x474fd4
push 0x4da084
push esi
call fcn.004c546f
mov edi, eax
add esp, 8
test edi, edi
je 0x474fb9
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x38]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [esi + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x50], eax
call fcn.004c5570
mov ecx, esi
mov esi, 0x4da038
mov edx, ecx
mov eax, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x4da084
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x54]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x4c]
add ebp, eax
mov dword [esp + 0x4c], ebp
call fcn.004c546f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x474f44
mov ebp, dword [esp + 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x3c]
cmp esi, eax
jb 0x474f30
mov esi, dword [esp + 0x1c]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x1c]
mov ecx, dword [0x4d9540]
mov edx, 0x4da084
test edx, edx
mov dword [esp + 0x38], ecx
jne 0x474ff2
xor eax, eax
jmp 0x475001
push 0x4da084
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esp + 0x1c]
push 0x4da084
push eax
mov eax, dword [esi - 8]
push esi
push eax
lea ecx, [esp + 0x48]
call fcn.004017b0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401200
lea ecx, [esp + 0x38]
call fcn.004014c0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00401850
mov eax, dword [esp + 0x34]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47506d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47506d
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
inc esi
mov ecx, dword [eax]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], esi
mov dword [eax], ecx
mov ecx, dword [0x4d9544]
add eax, 4
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4750b8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4750b8
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], eax
jne 0x474dcf
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, 0x4d961c
mov dword [ebx + ecx*4], 0xffffffff
mov edx, dword [0x4d9540]
test eax, eax
mov dword [esp + 0x10], edx
je 0x475130
push eax
call edi
mov esi, eax
test esi, esi
je 0x475130
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x475130
mov ecx, dword [esp + 0x10]
inc esi
push esi
push 0x4d961c
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00401850
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475171
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x475171
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004a2520
mov eax, dword [esp + 0x24]
push 0
push 0
push 0x1004
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], 4
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
lea ebx, [esi*4]
cmp edx, 1
mov ecx, ebx
jg 0x4751bc
cmp ebx, dword [eax - 4]
jle 0x47520b
mov eax, dword [eax - 8]
cmp ebx, eax
mov dword [esp + 0x3c], eax
jge 0x4751c9
mov ecx, eax
push ecx
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x47520b
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
lea esi, [ebp + 0xc]
push ebp
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], eax
call fcn.00401350
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x54]
mov dword [esp + 0x64], esi
mov eax, dword [edx + 4]
push eax
call fcn.004a27c0
test esi, esi
mov dword [esp + 0x2c], 0
jle 0x4752fc
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x58]
call fcn.004a2800
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x47533b
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x30]
push 0
mov edx, dword [ecx + 0x84]
mov edx, dword [edx + eax*4]
push edx
call fcn.004514b0
mov eax, dword [esp + 0x14]
mov ebp, dword [eax - 8]
cmp ebp, ebx
jge 0x4752e1
mov ecx, dword [esp + 0x40]
mov esi, dword [eax - 0xc]
lea ebx, [ecx + ecx]
lea ecx, [eax - 0xc]
mov dword [esp + 0x40], ebx
imul ebx, dword [esp + 0x34]
cmp esi, 1
mov edx, ebx
mov dword [esp + 0x3c], ecx
jg 0x4752a3
cmp ebx, dword [eax - 4]
jle 0x4752e1
cmp ebx, ebp
jge 0x4752a9
mov edx, ebp
push edx
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4752e1
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
lea ecx, [ebp + ebp + 2]
push eax
mov edx, ecx
lea esi, [eax + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], ebp
call fcn.00401350
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jl 0x475230
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x54]
call fcn.004a2820
mov eax, dword [esp + 0x94]
mov ecx, dword [0x4d9540]
test eax, eax
mov esi, eax
mov dword [esp + 0x18], ecx
je 0x4753c0
mov edx, eax
shr edx, 0x10
jne 0x47538a
and eax, 0xffff
lea ecx, [esp + 0x18]
push eax
call fcn.0040ff70
jmp 0x4753c0
lea ecx, [esp + 0x54]
call fcn.004a2560
mov eax, dword [esp + 0x14]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x47590c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x47590c
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x4753c0
push ebx
lea ecx, [esp + 0x1c]
call fcn.004012f0
test eax, eax
je 0x4753c0
mov edi, dword [esp + 0x18]
lea ecx, [ebx + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push ecx
mov edx, dword [eax - 0xc]
mov ecx, esp
test edx, edx
jl 0x4753e6
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4753f8
mov edx, dword [0x4d9540]
mov dword [ecx], edx
mov eax, dword [esp + 0x1c]
push eax
call fcn.004016e0
lea ecx, [esp + 0x24]
push ecx
call fcn.0048b850
mov eax, dword [esp + 0x58]
add esp, 8
cmp eax, 5
jne 0x47559d
mov edx, dword [0x4d9540]
mov eax, 0x4dc864
test eax, eax
mov dword [esp + 0x10], edx
je 0x47545b
push eax
call edi
mov esi, eax
test esi, esi
je 0x47545b
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x47545b
mov ecx, dword [esp + 0x10]
inc esi
push esi
push 0x4dc864
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.004c5509
mov edx, dword [0x4d9544]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47549d
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x47549d
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
test bl, bl
je 0x47552a
mov eax, dword [0x4d9540]
mov ecx, 0x4dc85c
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4754ed
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4754ed
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4754ed
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x4dc85c
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00401850
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x47552a
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x47552a
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00401200
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
call fcn.00475de0
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475575
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x475575
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475734
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x475734
jmp 0x475724
cmp eax, 4
jne 0x475782
mov eax, dword [0x4d9540]
mov ecx, 0x4db040
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4755ee
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4755ee
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4755ee
mov edx, dword [esp + 0x10]
inc esi
push esi
push 0x4db040
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004c5509
mov ecx, dword [0x4d9544]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
setne bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x475630
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x475630
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
test bl, bl
je 0x4756be
mov ecx, dword [0x4d9540]
mov edx, 0x4db038
test edx, edx
mov dword [esp + 0x10], ecx
je 0x475681
push edx
call edi
mov esi, eax
test esi, esi
je 0x475681
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x475681
mov eax, dword [esp + 0x10]
inc esi
push esi
push 0x4db038
push eax
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.00401850
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4756be
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4756be
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
push edx
call fcn.00401200
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
call fcn.00475de0
mov eax, dword [esp + 0x20]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475709
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x475709
mov edx, dword [esp + 0x20]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x475734
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x475734
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x54]
call fcn.004a2560
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4759a8
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4759a8
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret 0x10
cmp eax, 3
jne 0x475841
mov eax, dword [0x4d9540]
mov ecx, str.html
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x4757d3
push ecx
call edi
mov esi, eax
test esi, esi
je 0x4757d3
push esi
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4757d3
mov edx, dword [esp + 0x10]
inc esi
push esi
push str.html
push edx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004c5509
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004014c0
test bl, bl
je 0x47581c
push 0x4db044
lea ecx, [esp + 0x2c]
call fcn.004014f0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
push edx
call fcn.0040f810
lea ecx, [esp + 0x28]
call fcn.004014c0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00401200
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x1c]
push eax
call fcn.00475de0
jmp 0x475984
cmp eax, 1
jne 0x47591b
push 0x4daf1c
lea ecx, [esp + 0x2c]
call fcn.004014f0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ecx
push edx
call fcn.004c5509
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
setne bl
call fcn.004014c0
test bl, bl
je 0x47588a
push 0x4dc850
lea ecx, [esp + 0x1c]
call fcn.004217a0
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x4758e8
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x18]
mov ecx, dword [eax + 4]
push ecx
push ecx
mov ecx, esp
push edx
call fcn.00401200
call fcn.0048b130
add esp, 8
test eax, eax
je 0x4758e8
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00401200
call fcn.004021c0
mov eax, dword [esp + 0x20]
add esp, 8
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x20]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
lea ecx, [esp + 0x54]
call fcn.004a2560
lea ecx, [esp + 0x14]
call fcn.004014c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c0
ret 0x10
cmp eax, 2
jne 0x47588a
push 0x4db054
lea ecx, [esp + 0x2c]
call fcn.004014f0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004c5509
add esp, 8
lea ecx, [esp + 0x28]
test eax, eax
setne bl
call fcn.004014c0
test bl, bl
je 0x475964
push 0x4dc844
lea ecx, [esp + 0x1c]
call fcn.004217a0
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push edx
push ecx
mov ecx, esp
push eax
call fcn.00401200
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004759c0
lea ecx, [esp + 0x20]
call fcn.004014c0
lea ecx, [esp + 0x18]
call fcn.004014c0
lea ecx, [esp + 0x54]
call fcn.004a2560
lea ecx, [esp + 0x14]
call fcn.004014c0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8c0
ret 0x10