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

Disassembly:
push 0xffffffffffffffff
push 0x47e808
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a6eb0]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x3c], ebx
mov eax, dword [0x4a743c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
mov dword [esp + 0x74], 1
call edx
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x4c], esp
mov esi, esp
push eax
mov byte [esp + 0x7c], 2
call fcn.00401520
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00465590
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 3
call fcn.00404460
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x74], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4668ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x28]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, esi
je 0x466953
mov edi, dword [esp + 0x84]
mov ecx, edi
call fcn.00401d90
push edi
push ecx
lea esi, [ebp - 0x10]
mov dword [esp + 0x8c], esp
mov edi, esp
push esi
call fcn.00401520
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.00465880
mov edi, eax
mov byte [esp + 0x74], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4670d3
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4670d3
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], esi
mov edx, dword [0x4a743c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a743c
mov byte [esp + 0x74], 6
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov eax, dword [ebx + 4]
mov byte [esp + 0x74], 7
mov dword [esp + 0x34], esi
cmp eax, esi
jne 0x466a82
lea eax, [edi - 0x10]
mov byte [esp + 0x74], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4669bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
cmp eax, esi
je 0x4669d1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x74], 4
cmp eax, esi
je 0x4669e6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x466a07
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00411240
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
lea eax, [ebp - 0x10]
mov byte [esp + 0x74], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466a28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x74], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466a4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov dword [esp + 0x74], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466a78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x467121
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
cmp eax, esi
mov dword [esp + 0x1c], eax
jge 0x466b81
lea eax, [edi - 0x10]
mov byte [esp + 0x74], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466abc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
cmp eax, esi
je 0x466ad1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x74], 4
cmp eax, esi
je 0x466ae6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x466b07
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00411240
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x74], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466b28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x74], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466b4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov dword [esp + 0x74], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466b78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x467121
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edi, eax
cmp edi, esi
mov dword [esp + 0x1c], edi
jge 0x466bfb
lea ecx, [esp + 0x20]
call fcn.00450df0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
cmp eax, esi
je 0x466bba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x74], 4
cmp eax, esi
je 0x466bcf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x4c]
call fcn.00411520
lea ecx, [esp + 0x28]
call fcn.00450df0
lea ecx, [esp + 0x7c]
call fcn.00450df0
lea ecx, [esp + 0x80]
call fcn.00450df0
jmp 0x46711f
mov ecx, dword [esp + 0x84]
call fcn.00401d90
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x24]
call fcn.00404460
mov ecx, dword [esp + 0x7c]
cmp dword [ecx - 0xc], esi
je 0x466c79
push 0x482aac
lea ecx, [esp + 0x80]
call fcn.00406ad0
test eax, eax
je 0x466c79
lea edx, [esp + 0x4c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x482aac
call fcn.00406310
push ecx
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x84], 8
call fcn.00402410
mov ecx, ebx
mov byte [esp + 0x80], 7
call fcn.00466650
jmp 0x466c8a
lea ecx, [esp + 0x4c]
call fcn.004656e0
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x38], eax
cmp ecx, esi
jbe 0x46713b
lea esp, [esp]
cmp eax, ecx
jae 0x466f64
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
lea ebp, [ecx + eax*4]
cmp dword [edx - 0xc], esi
je 0x466f48
xor edi, edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
push ecx
push esi
mov ecx, ebx
mov byte [esp + 0x80], 9
call fcn.004660e0
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x466f6e
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov dword [esp + 0x34], ecx
cmp eax, edi
jbe 0x467011
lea esp, [esp]
cmp ecx, eax
jae 0x466f64
mov edx, dword [esp + 0x5c]
mov eax, dword [0x4a743c]
lea edi, [edx + ecx*4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a743c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi]
push ecx
push ecx
sub eax, 0x10
mov dword [esp + 0x28], esp
mov esi, esp
push eax
mov byte [esp + 0x84], 0xa
call fcn.00401520
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.00465710
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x466e95
cmp dword [ecx - 0xc], 0
je 0x466e95
mov eax, dword [ebp]
xor edx, edx
test eax, eax
setne dl
test edx, edx
je 0x467007
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x466ed4
push 1
lea edx, [esp + 0x44]
push edx
mov ecx, ebp
call fcn.004027f0
push 0x4927e8
push eax
call fcn.00404110
add esp, 8
lea ecx, [esp + 0x40]
mov bl, al
call fcn.00450df0
test bl, bl
je 0x466e85
lea ecx, [esp + 0x30]
call fcn.004023f0
lea ecx, [esp + 0x2c]
call fcn.004023f0
push 0x2e
mov ecx, ebp
mov byte [esp + 0x78], 0xc
call fcn.00406b00
cmp eax, 0xffffffff
je 0x466e73
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
call fcn.00407d60
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 0xd
call fcn.00404460
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], 0xc
call fcn.00450df0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00406b00
cmp eax, 0xffffffff
je 0x466e73
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00407d60
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0xe
call fcn.00404460
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 0xc
call fcn.00450df0
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
call fcn.00406ad0
test eax, eax
je 0x466ef1
lea ecx, [esp + 0x2c]
call fcn.00450df0
lea ecx, [esp + 0x30]
call fcn.00450df0
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 9
call fcn.00450df0
jmp 0x466eb6
lea eax, [ecx - 0x10]
mov byte [esp + 0x74], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466eb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, eax
jae 0x467011
mov ebx, dword [esp + 0x3c]
jmp 0x466d10
push edi
lea ecx, [esp + 0x24]
call fcn.00404460
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.00450df0
jmp 0x466f22
push edi
lea ecx, [esp + 0x24]
call fcn.00404460
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], 1
call fcn.00450df0
lea ecx, [esp + 0x30]
call fcn.00450df0
lea ecx, [esp + 0x18]
call fcn.00450df0
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x74], 7
test eax, eax
je 0x466f48
mov ecx, dword [esp + 0x60]
push ecx
push eax
call fcn.00411240
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
inc eax
mov dword [esp + 0x38], eax
cmp eax, ecx
jae 0x467137
xor esi, esi
jmp 0x466ca0
push 0x80070057
call fcn.00401120
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x466f8f
mov ecx, dword [esp + 0x60]
push ecx
push eax
call fcn.00411240
mov edx, dword [esp + 0x64]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x74], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x466fb0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
cmp eax, edi
je 0x466fc5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x74], 4
cmp eax, edi
je 0x466fda
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x466ffb
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00411240
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
jmp 0x466b0a
push 0x80004005
call fcn.00401120
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x46702e
push eax
push ecx
call fcn.00411240
mov ecx, dword [esp + 0x64]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
mov ecx, dword [esp + 0x84]
call fcn.00401d90
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x74], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x467063
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
test eax, eax
je 0x467078
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov byte [esp + 0x74], 4
test eax, eax
je 0x46708d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4670ae
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00411240
mov edx, dword [esp + 0x54]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x74], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4670d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x74], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4670f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x74], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46711f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x34], 0
je 0x46702e
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x20]
push edx
call fcn.00404460
jmp 0x46703e