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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
mov eax, dword [0x437070]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x78]
push ebx
push esi
push edi
mov dword [esp + 0x70], eax
call fcn.00403270
mov ecx, dword [eax]
call fcn.00403110
mov edx, dword [esp + 0x84]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4026d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00401450
test eax, eax
je 0x402c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [esp + 0x80]
push 0x64
mov dword [esp + 0x84], eax
call fcn.00403850
call fcn.00401450
test eax, eax
je 0x402c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x78], eax
call fcn.00401450
test eax, eax
je 0x402c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x74], eax
call fcn.00410e2f
cmp dword [eax], 1
jle 0x402910
mov byte [esp + 0xf], 0
mov ebx, 1
call fcn.00410e2f
cmp dword [eax], ebx
jle 0x402910
nop dword [eax]
call fcn.00410e35
mov eax, dword [eax]
mov esi, dword [eax + ebx*4]
call fcn.00401450
test eax, eax
je 0x402c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x7c], eax
test esi, esi
je 0x4027b6
test esi, 0xffff0000
jne 0x4027a0
movzx eax, si
lea ecx, [esp + 0x7c]
push eax
call fcn.00403850
jmp 0x4027c6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4027a5
sub ecx, edx
sar ecx, 1
jmp 0x4027b8
xor ecx, ecx
push ecx
push esi
lea ecx, [esp + 0x84]
call fcn.004057c0
cmp byte [esp + 0xf], 0
mov edi, dword [esp + 0x7c]
je 0x4027e2
mov ecx, edi
call fcn.00403110
mov byte [esp + 0xf], 0
jmp 0x4028e7
push str._langcode
push edi
call fcn.00410c64
add esp, 8
test eax, eax
jne 0x4027fe
mov byte [esp + 0xf], 1
jmp 0x4028e7
push str._init
push edi
call fcn.00410c64
add esp, 8
test eax, eax
je 0x402c3b
push str._installfail
push edi
call fcn.00410c64
add esp, 8
test eax, eax
je 0x402b29
push str._reboot
push edi
call fcn.00410c64
add esp, 8
test eax, eax
je 0x4029ae
push str._criticalprompt
push edi
call fcn.00410c64
add esp, 8
test eax, eax
je 0x4029ae
lea ecx, [esp + 0x84]
mov dword [esp + 0x84], 0
call fcn.00403ad0
cmp dword [edi - 4], 1
jle 0x402886
push dword [edi - 0xc]
lea ecx, [esp + 0x80]
call fcn.00404750
mov edi, dword [esp + 0x7c]
push edi
lea eax, [esp + 0x88]
push str.unknown_command_line_argument__s
push eax
call fcn.00405b30
mov esi, dword [esp + 0x90]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x4028bf
push dword [esi - 0xc]
lea ecx, [esp + 0x88]
call fcn.00404750
mov esi, dword [esp + 0x84]
mov edx, esi
call fcn.00405bc0
push eax
call fcn.00405e80
add esp, 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4028e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4028ff
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
inc ebx
call fcn.00410e2f
cmp ebx, dword [eax]
jl 0x402760
or edi, 0xffffffff
push 0x6a
lea ecx, [esp + 0x7c]
call fcn.00403850
push 0x6b
lea ecx, [esp + 0x78]
call fcn.00403850
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x88]
call fcn.00402ef0
add esp, 8
mov edx, dword [esp + 0x74]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40295e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x78]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402979
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x80]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x402995
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x9c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004092eb
mov esp, ebp
pop ebp
ret 0x10
push 0x71
lea ecx, [esp + 0x7c]
call fcn.00403850
push 0x72
lea ecx, [esp + 0x78]
call fcn.00403850
push 0x60
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040af50
add esp, 0xc
mov dword [esp + 0x10], 0x60
mov dword [esp + 0x1c], 0x18c02
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0x20
push 0x20
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
push 0x80
push dword [esp + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
call fcn.00401450
test eax, eax
je 0x402c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x70], eax
call fcn.00401450
test eax, eax
je 0x402c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [esp + 0x70]
push 0x67
mov dword [esp + 0x88], eax
call fcn.00403850
push 0x68
lea ecx, [esp + 0x88]
call fcn.00403850
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x84]
push 0
mov dword [esp + 0x94], eax
lea eax, [esp + 0x90]
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa4], 5
mov dword [esp + 0xa8], esi
mov dword [esp + 0x44], 2
mov dword [esp + 0x74], 0x402d50
mov dword [esp + 0x78], 0
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402b05
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x70]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402c6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402c6e
push 0x6f
lea ecx, [esp + 0x7c]
call fcn.00403850
push 0x70
lea ecx, [esp + 0x78]
call fcn.00403850
push 0x60
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040af50
add esp, 0xc
mov dword [esp + 0x10], 0x60
mov dword [esp + 0x1c], 2
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 0
push 0x20
push 0x20
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
push 1
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x90]
push 0x80
push dword [esp + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x48], eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
call fcn.00401450
mov ecx, eax
test ecx, ecx
je 0x402c91
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x70]
push 0x6e
mov dword [esp + 0x74], eax
call fcn.00403850
mov esi, dword [esp + 0x70]
lea eax, [esp + 0x84]
push 0
push 0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x94], 1
mov dword [esp + 0x98], esi
mov dword [esp + 0x44], 1
mov dword [esp + 0x74], 0x402d00
mov dword [esp + 0x78], 0
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402c6e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402c6e
push 0x6c
lea ecx, [esp + 0x7c]
call fcn.00403850
push 0x6d
lea ecx, [esp + 0x78]
call fcn.00403850
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x7c]
push eax
lea edx, [esp + 0x88]
call fcn.00402ef0
add esp, 8
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402943
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x402943
push 0x80004005
call fcn.00401230
int3