Function at 0x406180
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41b57a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x13bc
call fcn.00411a60
mov eax, dword [0x4231dc]
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x10], ebx
push edi
mov edi, 1
mov dword [esp + 0x13c4], eax
mov esi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14c], 7
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], bx
cmp ecx, edi
mov dword [esp + 0x13d4], ebx
jle 0x406261
nop
mov eax, dword [esi + edi*4]
push 8
push str._pieces
push eax
call fcn.0041ae9c
add esp, 0xc
test eax, eax
jne 0x40621c
mov ecx, dword [esi + edi*4]
add ecx, 0x10
push ecx
call fcn.00411b38
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x406258
mov edx, dword [esi + edi*4]
push 0xc
push str._ipcchannel
push edx
call fcn.0041ae9c
add esp, 0xc
test eax, eax
jne 0x406258
mov eax, dword [esi + edi*4]
add eax, 0x18
push eax
mov dword [esp + 0x10], eax
call fcn.0041192e
add esp, 4
push eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x13c]
call fcn.00403970
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x4061f0
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x1b0]
rep stosd dword es:[edi], eax
push 0x104
lea ecx, [esp + 0x1b4]
push ecx
push ebx
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
mov edi, 0xf
jne 0x4063dd
push 6
push str.mymain
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401ab0
push 0xd
push str..SFXStub.cpp
lea ecx, [esp + 0x68]
mov byte [esp + 0x13dc], 1
mov dword [esp + 0x80], edi
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00401ab0
mov esi, 7
push str.GetModuleFileName_failure
mov byte [esp + 0x13d8], 2
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
call fcn.0041192e
add esp, 4
push eax
push str.GetModuleFileName_failure
lea ecx, [esp + 0xbc]
call fcn.00403970
lea edx, [esp + 0x1c]
push edx
push 0x8c
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x160]
mov byte [esp + 0x13e4], 3
call fcn.0040701e
cmp dword [esp + 0xcc], 8
jb 0x40635e
mov edx, dword [esp + 0xb8]
push edx
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x78], 0x10
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], bx
jb 0x406388
mov eax, dword [esp + 0x64]
push eax
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
mov byte [esp + 0x13d4], 5
jb 0x4063b0
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004112ad
add esp, 4
lea ecx, [esp + 0x150]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.0040718a
lea ecx, [esp + 0x150]
mov byte [esp + 0x13d4], bl
call fcn.00406fcd
jmp 0x4063e2
mov esi, 7
lea edx, [esp + 0x1b0]
push edx
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
call fcn.0041192e
add esp, 4
push eax
lea eax, [esp + 0x1b4]
push eax
lea ecx, [esp + 0xd8]
call fcn.00403970
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
cmp dword [esp + 0x10], 1
mov byte [esp + 0x13d4], 9
jne 0x40644e
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x64]
call fcn.004060d0
jmp 0x4067d5
push str..1.part
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
call fcn.0041192e
add esp, 4
push eax
push str..1.part
lea ecx, [esp + 0xbc]
call fcn.00403970
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xe4]
cmp eax, ecx
mov byte [esp + 0x13d4], 0xa
mov dword [esp + 0xc], ecx
jb 0x4064f2
mov esi, dword [esp + 0xcc]
mov edx, 8
cmp esi, edx
mov esi, dword [esp + 0xb8]
jae 0x4064bf
lea esi, [esp + 0xb8]
cmp dword [esp + 0xe8], edx
mov edx, dword [esp + 0xd4]
jae 0x4064d6
lea edx, [esp + 0xd4]
sub eax, ecx
lea edx, [edx + eax*2]
push esi
push edx
call fcn.00412be4
add esp, 8
test eax, eax
je 0x406613
mov esi, 7
push 6
push str.mymain
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401ab0
push 0xd
push str..SFXStub.cpp
lea ecx, [esp + 0x24]
mov byte [esp + 0x13dc], 0xb
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401ab0
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
push str.Expected_file_with_extension
push ecx
mov byte [esp + 0x13e0], 0xc
call fcn.00404520
add esp, 0xc
lea edx, [esp + 0x44]
push edx
push 0x9b
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x160]
mov byte [esp + 0x13e4], 0xd
call fcn.0040701e
cmp dword [esp + 0x94], 8
jb 0x406595
mov edx, dword [esp + 0x80]
push edx
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x34], 0x10
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x4065bf
mov eax, dword [esp + 0x20]
push eax
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x5c], 0x10
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x13d4], 0xf
jb 0x4065e7
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004112ad
add esp, 4
lea ecx, [esp + 0x150]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.0040718a
lea ecx, [esp + 0x150]
mov byte [esp + 0x13d4], 0xa
call fcn.00406fcd
mov edx, dword [esp + 0xe4]
sub edx, dword [esp + 0xc]
push edx
push ebx
lea eax, [esp + 0x120]
push eax
lea ecx, [esp + 0xdc]
call fcn.00403af0
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, ebx
mov byte [esp + 0x13d4], 0x12
jle 0x40677a
lea ebx, [ebx]
inc edi
mov edx, edi
lea ecx, [esp + 0x98]
call fcn.00408c66
mov esi, eax
push 0x2e
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x13e0], 0x13
call fcn.00403f40
push esi
push eax
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x13ec], 0x14
call fcn.004045d0
push str..part
push eax
lea ecx, [esp + 0x9c]
push ecx
mov byte [esp + 0x13f8], 0x15
call fcn.00404470
add esp, 0x24
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x13d8], 0x16
call fcn.004060d0
cmp dword [esp + 0x94], 8
jb 0x4066db
mov edx, dword [esp + 0x80]
push edx
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x5c], 8
mov esi, 7
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
jb 0x40670a
mov eax, dword [esp + 0x48]
push eax
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x34], 8
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
jb 0x40672b
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004112ad
add esp, 4
cmp dword [esp + 0xb0], 8
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov byte [esp + 0x13d4], 0x12
jb 0x40675a
mov edx, dword [esp + 0x9c]
push edx
call fcn.004112ad
add esp, 4
cmp edi, dword [esp + 0x10]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
jl 0x406650
mov eax, dword [esp + 0x130]
mov esi, 8
cmp eax, esi
jb 0x40679a
mov eax, dword [esp + 0x11c]
push eax
call fcn.004112ad
add esp, 4
cmp dword [esp + 0xcc], esi
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], bx
mov byte [esp + 0x13d4], 9
jb 0x4067d5
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.004112ad
add esp, 4
push 0x30
call fcn.00410e24
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
cmp esi, ebx
mov byte [esp + 0x13d4], 0x17
je 0x40680d
sub esp, 0x10
lea edx, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00405f40
mov ecx, esi
call fcn.00402750
jmp 0x40680f
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x406825
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
mov eax, dword [str.___InstallEnd__]
mov ecx, dword [0x41d4f8]
mov edx, dword [0x41d4fc]
mov dword [esp + 0xec], eax
mov eax, dword [0x41d500]
mov dword [esp + 0xf8], eax
or eax, 0xffffffff
mov byte [esp + 0x13d4], 0x18
mov dword [esp + 0xf0], ecx
mov dword [esp + 0xf4], edx
mov byte [esp + 0xec], 0x3b
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 0x1000
lea eax, [esp + 0x3c4]
push eax
call dword [edx + 0x24]
xor esi, esi
lea edi, [eax - 0x41]
cmp edi, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], esi
jle 0x4068c7
lea esp, [esp]
push 0xf
lea ecx, [esp + 0xf0]
push ecx
lea edx, [esp + esi + 0x3c8]
push edx
call fcn.00411aa0
add esp, 0xc
test eax, eax
je 0x4068e6
inc esi
cmp esi, edi
mov dword [esp + 0xc], esi
jl 0x4068a0
cmp dword [esp + 0x18], 0x1000
jb 0x40695d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffbf
call dword [eax + 0x2c]
jmp 0x406872
mov edi, 0xf
lea esi, [esp + esi + 0x3c0]
push 2
lea ecx, [edi + esi]
push 0x41d4f0
push ecx
call fcn.00411aa0
add esp, 0xc
test eax, eax
je 0x40691c
inc edi
cmp edi, 0x41
jl 0x4068f2
or eax, 0xffffffff
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
jmp 0x40695d
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov esi, eax
mov ecx, edx
mov eax, edi
cdq
mov edi, eax
mov eax, dword [esp + 0x18]
mov ebx, edx
cdq
sub edi, eax
mov eax, dword [esp + 0xc]
sbb ebx, edx
add esi, edi
cdq
adc ecx, ebx
add esi, eax
adc ecx, edx
mov eax, esi
and eax, ecx
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], ecx
jne 0x406a9c
push 6
mov esi, 0xf
push str.mymain
lea ecx, [esp + 0xbc]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], ebx
mov byte [esp + 0xc0], bl
call fcn.00401ab0
push 0xd
push str..SFXStub.cpp
lea ecx, [esp + 0x24]
mov byte [esp + 0x13dc], 0x19
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00401ab0
push 0x1f
push str.Could_not_find_start_of_7z_data
lea ecx, [esp + 0x4c]
mov byte [esp + 0x13dc], 0x1a
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], ebx
mov byte [esp + 0x50], bl
call fcn.00401ab0
lea ecx, [esp + 0xb4]
push ecx
push 0xd1
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x160]
mov byte [esp + 0x13e4], 0x1b
call fcn.00407080
mov eax, dword [esp + 0x5c]
mov edi, 0x10
cmp eax, edi
jb 0x406a17
mov ecx, dword [esp + 0x48]
push ecx
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x34], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
jb 0x406a36
mov edx, dword [esp + 0x20]
push edx
call fcn.004112ad
add esp, 4
cmp dword [esp + 0xcc], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov byte [esp + 0x13d4], 0x1d
jb 0x406a63
mov eax, dword [esp + 0xb8]
push eax
call fcn.004112ad
add esp, 4
lea ecx, [esp + 0x150]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
call fcn.0040718a
lea ecx, [esp + 0x150]
mov byte [esp + 0x13d4], 0x18
call fcn.00406fcd
mov esi, dword [esp + 0x38]
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
push 1
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xdc]
mov byte [esp + 0x13e0], 0x20
mov dword [esp + 0x18], 0x5c
call fcn.00402b90
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xdc]
mov edi, eax
mov dword [esp + 0x18], 0x2f
call fcn.00402b90
cmp edi, 0xffffffff
je 0x406b08
cmp eax, 0xffffffff
je 0x406b0a
cmp edi, eax
jae 0x406b0a
mov edi, eax
cmp edi, 0xffffffff
je 0x406b60
inc edi
push edi
push ebx
lea eax, [esp + 0xa0]
push eax
lea ecx, [esp + 0xdc]
call fcn.00403af0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x13e0], 0x21
call fcn.00403830
cmp dword [esp + 0xb0], 8
mov byte [esp + 0x13d4], 0x20
jb 0x406b60
mov ecx, dword [esp + 0x9c]
push ecx
call fcn.004112ad
add esp, 4
push 0xa4
call fcn.00410e24
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x13d4], 0x22
je 0x406c2d
mov eax, dword [0x4230c0]
lea edx, [esp + 0x134]
push edx
push eax
lea ecx, [esp + 0x120]
push ecx
call fcn.00404520
mov edi, eax
mov eax, dword [str.F1DCCEEC_78B1_4a8c_82E0_994C8A682D3D]
lea edx, [esp + 0x140]
push edx
push eax
lea ecx, [esp + 0x90]
push ecx
mov byte [esp + 0x13ec], 0x23
mov dword [esp + 0x2c], 1
call fcn.00404520
mov esi, eax
mov eax, dword [str.EEF4DCB9_E47E_4ee9_A191_C303C366F66C]
lea edx, [esp + 0x14c]
push edx
push eax
lea ecx, [esp + 0xb8]
push ecx
mov dword [esp + 0x13f8], 0x24
mov dword [esp + 0x38], 3
call fcn.00404520
add esp, 0x24
mov ecx, dword [esp + 0xc]
push 1
push edi
push 0x1000
push esi
push 0xc8
push eax
mov dword [esp + 0x13ec], 0x25
mov dword [esp + 0x2c], 7
call fcn.00409ea5
mov esi, dword [esp + 0x38]
jmp 0x406c2f
xor eax, eax
push eax
mov ecx, 0x424068
mov dword [esp + 0x13d8], 0x28
call fcn.00402dd0
test byte [esp + 0x14], 4
mov edi, 8
je 0x406c91
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xb0]
and ecx, 0xfffffffb
cmp eax, edi
mov dword [esp + 0x14], ecx
jb 0x406c77
mov edx, dword [esp + 0x9c]
push edx
call fcn.004112ad
add esp, 4
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
test byte [esp + 0x14], 2
je 0x406cd8
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x94]
and ecx, 0xfffffffd
cmp eax, edi
mov dword [esp + 0x14], ecx
jb 0x406cbe
mov eax, dword [esp + 0x80]
push eax
call fcn.004112ad
add esp, 4
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], bx
test byte [esp + 0x14], 1
mov dword [esp + 0x13d4], 0x20
je 0x406d03
cmp dword [esp + 0x130], edi
jb 0x406d03
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.004112ad
add esp, 4
mov eax, dword [0x42406c]
push 0x402f80
push 0x424070
lea ecx, [eax + 0x2c]
call fcn.00405d80
mov ecx, dword [0x42406c]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
push ebx
mov dword [0x4240f0], 0x4048a0
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
push edx
push esi
lea edx, [esp + 0x104]
call fcn.00404990
cmp dword [esp + 0x114], edi
jb 0x406d69
mov eax, dword [esp + 0x100]
push eax
call fcn.004112ad
add esp, 4
mov edi, dword [esp + 0x10]
cmp edi, ebx
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], bx
mov byte [esp + 0x13d4], 9
je 0x406da9
lea ecx, [edi + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
test eax, eax
jne 0x406da9
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx]
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x406df5
mov esi, dword [esp + 0x68]
mov edi, eax
cmp edi, esi
je 0x406de8
add edi, 0x18
mov edi, edi
cmp dword [edi], 8
jb 0x406dd1
mov eax, dword [edi - 0x14]
push eax
call fcn.004112ad
add esp, 4
mov dword [edi], 7
mov dword [edi - 4], ebx
mov word [edi - 0x14], bx
add edi, 0x1c
lea ecx, [edi - 0x18]
cmp ecx, esi
jne 0x406dc0
mov edx, dword [esp + 0x64]
push edx
call fcn.004112ad
add esp, 4
mov eax, dword [esp + 0xe8]
mov esi, 8
cmp eax, esi
jb 0x406e15
mov eax, dword [esp + 0xd4]
push eax
call fcn.004112ad
add esp, 4
cmp dword [esp + 0x14c], esi
mov dword [esp + 0xe8], 7
mov dword [esp + 0xe4], ebx
mov word [esp + 0xd4], bx
jb 0x406e48
mov ecx, dword [esp + 0x138]
push ecx
call fcn.004112ad
add esp, 4
mov ecx, dword [esp + 0x13cc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c4]
xor eax, eax
call fcn.00411920
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret