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

Disassembly:
push 0xffffffffffffffff
push 0x47e008
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a5eb0]
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 [0x4a643c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
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.004014f0
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea eax, [esp + 0x3c]
push eax
mov ecx, ebx
call fcn.00464e10
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], 3
call fcn.00404450
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 0x46616c
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 0x4661d3
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.004014f0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [edi], eax
call fcn.00465100
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 0x466953
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x466953
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 [0x4a643c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4a643c
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 0x466302
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 0x46623c
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 0x466251
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 0x466266
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x466287
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00410c30
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 0x4662a8
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 0x4662cd
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 0x4662f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 0x80004005
jmp 0x4669a1
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 0x466401
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 0x46633c
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 0x466351
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 0x466366
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x466387
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00410c30
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 0x4663a8
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 0x4663cd
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 0x4663f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
jmp 0x4669a1
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 0x46647b
lea ecx, [esp + 0x20]
call fcn.004023d0
mov eax, dword [esp + 0x24]
mov byte [esp + 0x74], 5
cmp eax, esi
je 0x46643a
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 0x46644f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x4c]
call fcn.00410f10
lea ecx, [esp + 0x28]
call fcn.004023d0
lea ecx, [esp + 0x7c]
call fcn.004023d0
lea ecx, [esp + 0x80]
call fcn.004023d0
jmp 0x46699f
mov ecx, dword [esp + 0x84]
call fcn.00401d90
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x24]
call fcn.00404450
mov ecx, dword [esp + 0x7c]
cmp dword [ecx - 0xc], esi
je 0x4664f9
push 0x481934
lea ecx, [esp + 0x80]
call fcn.00406aa0
test eax, eax
je 0x4664f9
lea edx, [esp + 0x4c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x481934
call fcn.00406300
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.00465ed0
jmp 0x46650a
lea ecx, [esp + 0x4c]
call fcn.00464f60
mov dword [esp + 0x34], 1
mov ecx, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x38], eax
cmp ecx, esi
jbe 0x4669bb
lea esp, [esp]
cmp eax, ecx
jae 0x4667e4
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + eax*4]
lea ebp, [ecx + eax*4]
cmp dword [edx - 0xc], esi
je 0x4667c8
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.00465960
cmp eax, edi
mov dword [esp + 0x1c], eax
jl 0x4667ee
mov eax, dword [esp + 0x60]
xor ecx, ecx
mov dword [esp + 0x34], ecx
cmp eax, edi
jbe 0x466891
lea esp, [esp]
cmp ecx, eax
jae 0x4667e4
mov edx, dword [esp + 0x5c]
mov eax, dword [0x4a643c]
lea edi, [edx + ecx*4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4a643c
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.004014f0
add eax, 0x10
add esp, 4
mov ecx, ebx
mov dword [esi], eax
call fcn.00464f90
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x466715
cmp dword [ecx - 0xc], 0
je 0x466715
mov eax, dword [ebp]
xor edx, edx
test eax, eax
setne dl
test edx, edx
je 0x466887
push eax
push ecx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x466754
push 1
lea edx, [esp + 0x44]
push edx
mov ecx, ebp
call fcn.004027f0
push 0x491468
push eax
call fcn.00404100
add esp, 8
lea ecx, [esp + 0x40]
mov bl, al
call fcn.004023d0
test bl, bl
je 0x466705
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.00406ad0
cmp eax, 0xffffffff
je 0x4666f3
push eax
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
call fcn.00407d30
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 0xd
call fcn.00404450
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], 0xc
call fcn.004023d0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.00406ad0
cmp eax, 0xffffffff
je 0x4666f3
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00407d30
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0xe
call fcn.00404450
lea ecx, [esp + 0x48]
mov byte [esp + 0x74], 0xc
call fcn.004023d0
mov edx, dword [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
call fcn.00406aa0
test eax, eax
je 0x466771
lea ecx, [esp + 0x2c]
call fcn.004023d0
lea ecx, [esp + 0x30]
call fcn.004023d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 9
call fcn.004023d0
jmp 0x466736
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 0x466736
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 0x466891
mov ebx, dword [esp + 0x3c]
jmp 0x466590
push edi
lea ecx, [esp + 0x24]
call fcn.00404450
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 1
call fcn.004023d0
jmp 0x4667a2
push edi
lea ecx, [esp + 0x24]
call fcn.00404450
lea ecx, [esp + 0x2c]
mov dword [esp + 0x34], 1
call fcn.004023d0
lea ecx, [esp + 0x30]
call fcn.004023d0
lea ecx, [esp + 0x18]
call fcn.004023d0
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x74], 7
test eax, eax
je 0x4667c8
mov ecx, dword [esp + 0x60]
push ecx
push eax
call fcn.00410c30
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 0x4669b7
xor esi, esi
jmp 0x466520
push 0x80070057
call fcn.00401100
mov eax, dword [esp + 0x5c]
cmp eax, edi
je 0x46680f
mov ecx, dword [esp + 0x60]
push ecx
push eax
call fcn.00410c30
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 0x466830
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 0x466845
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 0x46685a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
cmp eax, edi
je 0x46687b
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00410c30
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 0x46638a
push 0x80004005
call fcn.00401100
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x4668ae
push eax
push ecx
call fcn.00410c30
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 0x4668e3
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 0x4668f8
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 0x46690d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x46692e
mov ecx, dword [esp + 0x50]
push ecx
push eax
call fcn.00410c30
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 0x466953
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 0x466978
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 0x46699f
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 0x4668ae
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x20]
push edx
call fcn.00404450
jmp 0x4668be