Function at 0x40746f
Capabilities:
Create process on windows
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ec6d
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x4b0760]
xor eax, esp
mov dword [esp + 0x5e8], eax
push ebx
push esi
push edi
mov eax, dword [0x4b0760]
xor eax, esp
push eax
lea eax, [esp + 0x600]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x20], edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
lea eax, [edi + 0x770]
push eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x3c
pop esi
push esi
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00462bd0
mov dword [esp + 0x34], esi
add esp, 0xc
lea esi, [ebx + 0x18]
mov dword [esp + 0x2c], 0x440
cmp dword [esi + 0x14], 8
mov dword [esp + 0x34], str.open
jb 0x40750d
mov eax, dword [esi]
jmp 0x40750f
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x38], eax
cmp dword [ebx + 0x40], ecx
jne 0x407520
mov dword [esp + 0x3c], ecx
jmp 0x40752f
lea eax, [ebx + 0x30]
cmp dword [eax + 0x14], 8
jb 0x40752b
mov eax, dword [eax]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], 1
mov dword [ebx + 0x78], ecx
cmp byte [ebx + 0x7f], cl
je 0x407550
imul eax, dword [ebx + 0x80], 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00461212
mov dword [ebx + 0xd0], eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407c84
call fcn.00461212
push 0x497a98
lea ecx, [esp + 0xb0]
mov dword [ebx + 0xd4], eax
call fcn.00403358
and dword [esp + 0x608], 0
lea ecx, [esp + 0x7c]
push esi
mov edx, str.Cannot_run_component_in_path:
call fcn.0040add4
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x614], 1
call fcn.0040382a
push 0
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x610], 0
call fcn.0040224f
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0xdc]
call fcn.00404844
mov esi, eax
mov byte [esp + 0x608], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.00404897
push eax
mov edx, 0x4981a8
mov byte [esp + 0x60c], 3
lea ecx, [esp + 0x188]
call fcn.0040ad5a
mov byte [esp + 0x60c], 4
lea ecx, [esp + 0x170]
mov edx, eax
mov dword [esp], 0x4981a4
call fcn.0040ad28
pop ecx
push esi
mov edx, eax
mov byte [esp + 0x60c], 5
lea ecx, [esp + 0x80]
call fcn.0040acdb
pop ecx
push 0xffffffffffffffff
xor esi, esi
mov byte [esp + 0x60c], 6
push esi
push eax
lea ecx, [esp + 0xb8]
call fcn.0040382a
push esi
push 1
lea ecx, [esp + 0x84]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x174]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x18c]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x15c]
call fcn.0040224f
push esi
mov byte [esp + 0x60c], 0
push 1
lea ecx, [esp + 0xe4]
call fcn.0040224f
push 0xb
call fcn.00431519
pop ecx
mov ecx, eax
lea edx, [ebx + 0x18]
mov edi, ecx
mov dword [esp + 0x14], ecx
xor eax, eax
lea ecx, [esp + 0xdc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
push edi
call fcn.00426796
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x4076f0
mov eax, dword [eax]
push 0x4981d0
push eax
call fcn.00460f61
pop ecx
pop ecx
push edi
push 1
lea ecx, [esp + 0xe4]
mov esi, eax
call fcn.0040220b
test esi, esi
je 0x40787e
push esi
mov esi, dword [esp + 0x18]
push 0xa
push 1
push esi
call fcn.0046113b
add esp, 0x10
lea ecx, [esp + 0x7c]
push esi
call fcn.004020e4
lea edx, [esp + 0x7c]
mov byte [esp + 0x608], 7
lea ecx, [esp + 0x64]
call fcn.00426823
mov edi, eax
push 0xa
pop edx
lea ecx, [esp + 0x94]
mov byte [esp + 0x608], 8
call fcn.004047f1
mov esi, eax
mov edx, 0x27bb
mov byte [esp + 0x608], 9
lea ecx, [esp + 0xc4]
call fcn.00426aff
push esi
mov edx, eax
mov byte [esp + 0x60c], 0xa
lea ecx, [esp + 0x170]
call fcn.0040acdb
mov byte [esp + 0x60c], 0xb
lea ecx, [esp + 0x188]
mov edx, eax
mov dword [esp], 0x4981d8
call fcn.0040ad28
pop ecx
push edi
mov edx, eax
mov byte [esp + 0x60c], 0xc
lea ecx, [esp + 0x158]
call fcn.0040acdb
mov byte [esp + 0x60c], 0xd
lea ecx, [esp + 0xe0]
mov edx, eax
mov dword [esp], 0x4981d4
call fcn.0040ad28
pop ecx
push 0xffffffffffffffff
xor esi, esi
mov byte [esp + 0x60c], 0xe
push esi
push eax
lea ecx, [esp + 0xb8]
call fcn.0040382a
push esi
push 1
lea ecx, [esp + 0xe4]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x15c]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x18c]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x174]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0xcc]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x9c]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x6c]
call fcn.0040224f
push esi
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0x610], 0
call fcn.0040220b
xor edi, edi
push dword [esp + 0x14]
call fcn.00431522
pop ecx
mov edx, ebx
lea ecx, [esp + 0xc4]
call fcn.0041d3ea
push eax
mov edx, str.._Component_url:
mov byte [esp + 0x60c], 0xf
lea ecx, [esp + 0x98]
call fcn.0040add4
mov byte [esp + 0x60c], 0x10
lea ecx, [esp + 0x68]
mov edx, eax
mov dword [esp], 0x498098
call fcn.0040ad28
pop ecx
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x614], 0x11
call fcn.0040382a
push edi
push 1
lea ecx, [esp + 0x6c]
call fcn.0040224f
push edi
push 1
lea ecx, [esp + 0x9c]
call fcn.0040224f
push 0
push 1
lea ecx, [esp + 0xcc]
mov byte [esp + 0x610], 0
call fcn.0040224f
mov edi, dword [esp + 0x20]
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x68]
push eax
lea ecx, [edi + 0x70c]
call fcn.00420075
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0040224f
lea eax, [esp + 0x19c]
mov ecx, edi
push eax
call fcn.004208ae
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x60c], 0x12
call fcn.00409d91
lea ecx, [esp + 0x19c]
mov byte [esp + 0x608], 0x14
call fcn.00402e08
mov esi, dword [esp + 0x7c]
cmp esi, dword [esp + 0x80]
je 0x407c5c
add ebx, 0x48
mov dword [esp + 0x1c], ebx
push esi
lea ecx, [esp + 0x3c8]
call fcn.004072d2
mov edx, ebx
mov byte [esp + 0x608], 0x15
lea ecx, [esp + 0x64]
call fcn.00426779
mov edx, eax
lea ecx, [esp + 0x3d0]
call fcn.0040259e
push 0
push 1
lea ecx, [esp + 0x6c]
mov bl, al
call fcn.0040220b
test bl, bl
jne 0x4079fc
lea ecx, [esp + 0x3c4]
mov byte [esp + 0x608], 0x14
call fcn.004043cc
mov ebx, dword [esp + 0x1c]
add esi, 0x114
cmp esi, dword [esp + 0x80]
jne 0x40798f
jmp 0x407c5c
lea ecx, [esp + 0x1f4]
call fcn.0040807f
push 0xffffffffffffffff
xor ebx, ebx
mov byte [esp + 0x60c], 0x16
push ebx
lea eax, [esp + 0x3d8]
push eax
lea ecx, [esp + 0x230]
call fcn.00402127
lea eax, [esp + 0x19c]
mov ecx, edi
push eax
call fcn.00420877
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x608], 0x17
cmp ecx, eax
je 0x407a54
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402127
lea ecx, [esp + 0x19c]
mov byte [esp + 0x608], 0x16
call fcn.00405910
lea ecx, [esp + 0x64]
call fcn.004243a5
lea ecx, [esp + 0x20c]
mov byte [esp + 0x608], 0x18
cmp ecx, eax
je 0x407a8d
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402127
push ebx
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x610], 0x16
call fcn.0040220b
mov esi, str.false
push esi
call fcn.00401cbd
pop ecx
push eax
push esi
lea ecx, [esp + 0x25c]
call fcn.00402295
xor edx, edx
lea ecx, [esp + 0x64]
call fcn.0040471c
push eax
lea ecx, [esp + 0x240]
call fcn.00403333
push ebx
push 1
lea ecx, [esp + 0x6c]
call fcn.0040220b
mov esi, dword [esp + 0x4cc]
mov edi, dword [esp + 0x4d0]
cmp esi, edi
je 0x407c33
mov ebx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x368]
call fcn.00408106
xor ecx, ecx
push 0xf
pop eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x104], ecx
mov byte [esp + 0xf4], cl
mov dword [esp + 0x120], eax
mov dword [esp + 0x11c], ecx
mov byte [esp + 0x10c], cl
push 0xffffffffffffffff
push ecx
lea eax, [esp + 0x36c]
mov byte [esp + 0x610], 0x1a
push eax
lea ecx, [esp + 0x100]
call fcn.00402127
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x364]
call fcn.00401fbc
test al, al
je 0x407b7e
mov edx, 0x27a0
lea ecx, [esp + 0x94]
call fcn.00426a7f
or ebx, 1
jmp 0x407b8f
mov edx, 0x27a1
lea ecx, [esp + 0x64]
call fcn.00426a7f
or ebx, 2
push eax
lea ecx, [esp + 0x110]
mov dword [esp + 0x14], ebx
call fcn.00403333
test bl, 2
je 0x407bb9
push 0
and ebx, 0xfffffffd
lea ecx, [esp + 0x68]
push 1
mov dword [esp + 0x18], ebx
call fcn.0040220b
mov dword [esp + 0x608], 0x1a
test bl, 1
je 0x407be0
push 0
and ebx, 0xfffffffe
lea ecx, [esp + 0x98]
push 1
mov dword [esp + 0x18], ebx
call fcn.0040220b
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0x270]
call fcn.00409d08
push 0
push 1
lea ecx, [esp + 0x114]
call fcn.0040220b
push 0
push 1
lea ecx, [esp + 0xfc]
call fcn.0040220b
lea ecx, [esp + 0x364]
mov byte [esp + 0x608], 0x16
call fcn.00404534
add esi, 0x60
cmp esi, edi
jne 0x407af9
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1f4]
push eax
call fcn.00408a85
lea ecx, [esp + 0x1f4]
call fcn.004080bf
lea ecx, [esp + 0x3c4]
call fcn.004043cc
lea ecx, [esp + 0x7c]
call fcn.0040379b
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 1
lea ecx, [esp + 0xb4]
call fcn.0040224f
jmp 0x408059
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
push 0x1b7740
push eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [esp + 0x1c], 0
mov esi, eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x64]
call fcn.00404897
push eax
lea ecx, [ebx + 0xb8]
call fcn.004033ae
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0040224f
cmp esi, 0x102
jne 0x407ced
mov eax, dword [ebx + 0xd0]
add eax, 0x1b7740
jmp 0x407cf2
call fcn.00461212
mov dword [ebx + 0xd4], eax
mov ecx, edi
lea eax, [esp + 0x19c]
push eax
call fcn.004208ae
push eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x60c], 0x1c
call fcn.00409d91
lea ecx, [esp + 0x19c]
mov byte [esp + 0x608], 0x1e
call fcn.00402e08
mov esi, dword [esp + 0x7c]
cmp esi, dword [esp + 0x80]
je 0x40803f
add ebx, 0x48
mov dword [esp + 0x14], ebx
push esi
lea ecx, [esp + 0x4e0]
call fcn.004072d2
mov edx, ebx
mov byte [esp + 0x608], 0x1f
lea ecx, [esp + 0x64]
call fcn.00426779
mov edx, eax
lea ecx, [esp + 0x4e8]
call fcn.0040259e
push 0
push 1
lea ecx, [esp + 0x6c]
mov bl, al
call fcn.0040220b
test bl, bl
jne 0x407dbc
lea ecx, [esp + 0x4dc]
mov byte [esp + 0x608], 0x1e
call fcn.004043cc
mov ebx, dword [esp + 0x14]
add esi, 0x114
cmp esi, dword [esp + 0x80]
jne 0x407d4b
mov ebx, dword [esp + 0x18]
jmp 0x40803f
lea ecx, [esp + 0x27c]
call fcn.0040807f
push 0xffffffffffffffff
xor ebx, ebx
mov byte [esp + 0x60c], 0x20
push ebx
lea eax, [esp + 0x4f0]
push eax
lea ecx, [esp + 0x2b8]
call fcn.00402127
lea eax, [esp + 0x19c]
mov ecx, edi
push eax
call fcn.00420877
lea ecx, [esp + 0x27c]
mov byte [esp + 0x608], 0x21
cmp ecx, eax
je 0x407e14
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402127
lea ecx, [esp + 0x19c]
mov byte [esp + 0x608], 0x20
call fcn.00405910
lea ecx, [esp + 0x64]
call fcn.004243a5
lea ecx, [esp + 0x294]
mov byte [esp + 0x608], 0x22
cmp ecx, eax
je 0x407e4d
push 0xffffffffffffffff
push ebx
push eax
call fcn.00402127
push ebx
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x610], 0x20
call fcn.0040220b
mov esi, str.true
push esi
call fcn.00401cbd
pop ecx
push eax
push esi
lea ecx, [esp + 0x2e4]
call fcn.00402295
mov ebx, dword [esp + 0x18]
mov ecx, 0x3e8
mov eax, dword [ebx + 0xd4]
sub eax, dword [ebx + 0xd0]
cdq
idiv ecx
lea ecx, [esp + 0x64]
mov edx, eax
call fcn.004047aa
push eax
lea ecx, [esp + 0x2c8]
call fcn.00403333
push 0
push 1
lea ecx, [esp + 0x6c]
call fcn.0040220b
mov esi, dword [esp + 0x5e4]
mov edi, dword [esp + 0x5e8]
cmp esi, edi
je 0x408016
mov ebx, dword [esp + 0x10]
push esi
lea ecx, [esp + 0x308]
call fcn.00408106
xor ecx, ecx
push 0xf
pop eax
mov dword [esp + 0x138], eax
mov dword [esp + 0x134], ecx
mov byte [esp + 0x124], cl
mov dword [esp + 0x150], eax
mov dword [esp + 0x14c], ecx
mov byte [esp + 0x13c], cl
push 0xffffffffffffffff
push ecx
lea eax, [esp + 0x30c]
mov byte [esp + 0x610], 0x24
push eax
lea ecx, [esp + 0x130]
call fcn.00402127
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x304]
call fcn.00401fbc
test al, al
je 0x407f57
mov edx, 0x27a0
lea ecx, [esp + 0xc4]
call fcn.00426a7f
or ebx, 4
jmp 0x407f6b
mov edx, 0x27a1
lea ecx, [esp + 0x94]
call fcn.00426a7f
or ebx, 8
push eax
lea ecx, [esp + 0x140]
mov dword [esp + 0x14], ebx
call fcn.00403333
test bl, 8
je 0x407f98
push 0
and ebx, 0xfffffff7
lea ecx, [esp + 0x98]
push 1
mov dword [esp + 0x18], ebx
call fcn.0040220b
mov dword [esp + 0x608], 0x24
test bl, 4
je 0x407fbf
push 0
and ebx, 0xfffffffb
lea ecx, [esp + 0xc8]
push 1
mov dword [esp + 0x18], ebx
call fcn.0040220b
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x2f8]
call fcn.00409d08
push 0
push 1
lea ecx, [esp + 0x144]
call fcn.0040220b
push 0
push 1
lea ecx, [esp + 0x12c]
call fcn.0040220b
lea ecx, [esp + 0x304]
mov byte [esp + 0x608], 0x20
call fcn.00404534
add esi, 0x60
cmp esi, edi
jne 0x407ed2
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x27c]
push eax
call fcn.00408a85
lea ecx, [esp + 0x27c]
call fcn.004080bf
lea ecx, [esp + 0x4dc]
call fcn.004043cc
lea ecx, [esp + 0x7c]
call fcn.0040379b
mov eax, dword [esp + 0x48]
push dword [esp + 0x24]
mov dword [ebx + 0x78], eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [esp + 0x600]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5e8]
xor ecx, esp
call fcn.004600e1
mov esp, ebp
pop ebp
ret 0xc