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

Disassembly:
push 0xffffffffffffffff
push 0x44b8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x462600]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
lea ecx, [esp + 0x40]
call fcn.0041860b
xor ebp, ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x84], ebp
call fcn.004180be
mov byte [esp + 0x84], 1
call fcn.0041232b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406df4
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x84], 2
call fcn.0041232b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406e26
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x84], 3
xor eax, eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x28], 0xffffffff
call fcn.0041232b
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x406e86
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x84], 4
call fcn.00418033
mov esi, dword [eax + 8]
push 1
push 2
push 0xff
push 0xf
push 0x11
lea ecx, [esp + 0x4c]
call fcn.004183d9
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x48]
call fcn.004186a9
push 0x476974
lea ecx, [esp + 0x44]
call fcn.00418917
mov eax, dword [esp + 0x48]
cmp eax, ebp
mov ebx, eax
mov dword [esp + 0x1c], ebx
je 0x4070b5
lea esi, [esp + 0x24]
call fcn.00406a50
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 5
call fcn.00401d90
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x24]
call fcn.0040a5b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 6
call fcn.00401d90
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406f6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
mov eax, ebx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040beea
mov edi, dword [esp + 0x1c]
add esp, 4
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x24], eax
jle 0x4070fb
test ebp, ebp
jl 0x4070b0
cmp ebp, dword [esp + 0x48]
jge 0x4070b0
mov eax, dword [esp + 0x44]
lea eax, [eax + ebp*4]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004065c0
add esp, 0xc
mov byte [esp + 0x84], 7
mov ecx, dword [eax]
mov esi, dword [esp + 0x20]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x407030
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40701e
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40701e
push eax
call fcn.00401f20
mov dword [esp + 0x34], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x407011
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x30]
add ecx, 0x10
mov dword [esp + 0x20], ecx
jmp 0x40702c
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00401e10
mov ebx, dword [esp + 0x1c]
mov byte [esp + 0x84], 4
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
push 0x456f68
lea ecx, [esp + 0x28]
call fcn.00401b80
mov ecx, dword [esp + 0x20]
push 0x50
push 0
push 0
push 1
push ecx
push 0
call dword [sym.imp.USER32.dll_LoadImageW]
mov edx, dword [esp + 0x24]
mov dword [edx + ebp*4], eax
cmp ebp, dword [esp + 0x48]
jge 0x4070b0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + ebp*4]
push eax
push edi
call fcn.004294c1
add esp, 8
test eax, eax
jne 0x4070a3
mov dword [esp + 0x28], ebp
add ebp, 1
cmp ebp, ebx
jl 0x406f9b
jmp 0x4070fb
call fcn.00412a14
push 4
call fcn.0040beea
add esp, 4
push 0x83
mov ebp, eax
push esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp], eax
mov ecx, dword [esp + 0x48]
push str.English
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x30], 0
call fcn.00418993
mov dword [esp + 0x1c], 1
mov ebx, dword [esp + 0x1c]
xor esi, esi
test ebx, ebx
jle 0x407124
mov edx, dword [esp + 0x24]
mov eax, dword [edx + esi*4]
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00418033
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.004077e0
add esi, 1
cmp esi, ebx
jl 0x407101
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0xa4]
push edx
push 0
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0041839e
xor ebx, ebx
cmp dword [esp + 0x1c], ebx
mov dword [esp + 0x54], 7
jle 0x4072bb
test ebx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
jl 0x4070b0
cmp ebx, dword [esp + 0x48]
jge 0x4070b0
mov edx, dword [esp + 0x44]
mov eax, dword [edx + ebx*4]
lea esi, [eax - 0x10]
lea ebp, [edi - 0x10]
cmp esi, ebp
je 0x407233
cmp dword [ebp + 0xc], 0
jl 0x407221
mov ecx, dword [esi]
cmp ecx, dword [ebp]
jne 0x407221
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x4071c3
cmp eax, dword [esi]
jne 0x4071c3
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4071fe
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4073a0
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.0042902e
add esp, 0x10
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407218
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add edi, 0x10
mov dword [esp + 0x18], edi
jmp 0x407233
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401e10
mov edi, dword [esp + 0x18]
mov eax, dword [edi - 0xc]
lea edx, [eax + 1]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, edx
or eax, ecx
jge 0x407258
push edx
lea ecx, [esp + 0x1c]
call fcn.00401c70
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esp + 0x5c], edi
jne 0x407264
xor eax, eax
jmp 0x407285
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407270
sub eax, edx
sar eax, 1
js 0x4073a5
cmp eax, dword [edi - 8]
jg 0x4073a5
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x90]
mov dword [edi - 0xc], eax
add ecx, 0x84
mov word [edi + eax*2], 0
call fcn.00418588
add ebx, 1
cmp ebx, dword [esp + 0x1c]
jl 0x40715e
lea ecx, [esp + 0x38]
call fcn.0041835f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x8c]
mov ecx, dword [eax + 0xa4]
push 0
push edx
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x24]
push edx
call fcn.0040beef
lea eax, [edi - 0x10]
add esp, 4
mov byte [esp + 0x84], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x84], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40733d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x84], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407365
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x84], 0
call fcn.00418400
lea ecx, [esp + 0x40]
mov dword [esp + 0x84], 0xffffffff
call fcn.004187dd
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4
call fcn.00401d40
push 0x80070057
call fcn.004014d0
int3