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

Disassembly:
push 0xffffffffffffffff
push 0x523480
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597f54]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0x88]
call edx
mov ebp, dword [esp + 0x4c]
movzx eax, ax
cmp ebp, eax
jge 0x46cbe1
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov ecx, dword [0x59b204]
mov ecx, dword [ecx + 0x26c]
mov edi, eax
call fcn.0040ce66
cmp byte [esp + 0x64], 0
mov ebx, eax
mov dword [esp + 0x14], ebx
je 0x46c6fb
mov edx, dword [0x59b1fc]
cmp byte [edx + 0x18c], 0
je 0x46c6fb
test edi, edi
je 0x46c702
add edi, 0x28
push edi
mov ecx, ebx
call fcn.0044b510
jmp 0x46c702
mov ecx, ebx
call fcn.0044be80
call fcn.004b4151
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46c71e
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], edi
call fcn.004b4151
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x46c74c
push 0x80004005
call fcn.004010bd
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x8c]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
mov ecx, esi
mov byte [esp + 0x50], 1
call edx
test eax, eax
je 0x46c78e
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebx
mov ecx, ebx
call fcn.0044bec0
mov edx, dword [esi]
mov eax, dword [edx + 0x94]
mov ecx, esi
call eax
test eax, eax
je 0x46cae3
mov edx, dword [esi]
mov eax, dword [edx + 0x98]
mov ecx, esi
call eax
test eax, eax
je 0x46c89b
cmp byte [esp + 0x68], 0
je 0x46c826
mov ecx, dword [esi + 0xb0]
mov edx, dword [esi + 0xb4]
lea eax, [esi + 0xb0]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 0x244]
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
push ecx
mov ecx, esi
call edx
fld dword [esi + 0xa8]
mov edx, dword [esi + 0xa0]
push eax
push 1
push ecx
mov ecx, dword [esi + 0xa4]
fstp dword [esp]
lea eax, [esp + 0x44]
push eax
push ecx
push edx
push esi
call fcn.00476560
add esp, 0x28
cmp byte [esp + 0x64], 0
jne 0x46c837
cmp dword [esp + 0x58], edi
je 0x46cb85
call fcn.0040928f
test eax, eax
jne 0x46c84d
cmp word [esi + 0x94], di
mov dword [esp + 0x64], edi
jne 0x46c855
mov dword [esp + 0x64], 1
mov edx, dword [esi + 0x7c]
cmp dword [edx + 0x2cc], edi
mov edi, dword [esp + 0x54]
je 0x46c870
test ebp, ebp
jne 0x46c870
test edi, edi
je 0x46c870
xor ecx, ecx
jmp 0x46c875
mov ecx, 1
mov eax, edx
mov ebp, dword [eax + 0x244]
mov eax, dword [eax + 0x264]
push ebp
push eax
mov eax, dword [esp + 0x68]
push eax
test edi, edi
setne al
push ebx
push eax
mov eax, dword [esp + 0x78]
push eax
jmp 0x46cb54
cmp byte [esp + 0x68], 0
je 0x46cae3
cmp byte [esp + 0x64], 0
je 0x46ca9a
mov edi, dword [esp + 0x50]
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x30], edx
mov edx, dword [esi]
xor ebp, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x9c]
mov ecx, esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x68], ebp
call eax
cmp dword [eax + 0x10], 1
jl 0x46c900
mov edx, dword [esi]
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
cmp dword [esp + 0x54], ebp
setne byte [esp + 0x28]
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x244]
mov edx, dword [esi]
push ecx
lea ecx, [esi + 0xb0]
push ecx
push eax
mov eax, dword [edx + 0x9c]
mov ecx, esi
call eax
fld dword [esi + 0xa8]
mov edx, dword [esi + 0xa4]
test ebp, ebp
setne cl
push eax
mov eax, dword [esi + 0xa0]
push ecx
push ecx
fstp dword [esp]
push edi
push edx
push eax
push esi
call fcn.00476560
add esp, 0x28
test ebp, ebp
jne 0x46c968
mov eax, dword [edi + 4]
sub eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, ebx
sub eax, dword [edi + 0xc]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
call fcn.0040928f
test eax, eax
jne 0x46c995
cmp word [esi + 0x94], ax
mov dword [esp + 0x64], eax
jne 0x46c99d
mov dword [esp + 0x64], 1
mov edx, dword [esi + 0x7c]
cmp dword [edx + 0x2cc], 0
je 0x46c9bb
cmp dword [esp + 0x4c], 0
jne 0x46c9bb
cmp dword [esp + 0x54], 0
je 0x46c9bb
xor ecx, ecx
jmp 0x46c9c0
mov ecx, 1
mov eax, edx
fld dword [esi + 0xa8]
mov ebx, dword [eax + 0x244]
mov eax, dword [eax + 0x264]
push ebx
push eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esi + 0xa0]
push eax
push ecx
push ecx
mov ecx, dword [esi + 0xa4]
fstp dword [esp]
push edi
push ecx
push edx
call fcn.00477270
mov ebx, dword [esp + 0x70]
add esp, 0x38
test ebp, ebp
jne 0x46ca2f
mov eax, dword [edi + 4]
sub eax, dword [esp + 0x30]
mov ecx, ebx
sub ecx, dword [edi + 0xc]
mov dword [esp + 0x50], eax
mov dword [esp + 0x68], ecx
jmp 0x46ca37
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
mov dword [edi], edx
mov edx, dword [esp + 0x30]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x34]
add ebp, 1
cmp ebp, 2
mov dword [edi + 8], edx
mov dword [edi + 0xc], ebx
jl 0x46c909
mov edx, dword [esp + 0x20]
cmp edx, eax
jle 0x46ca6d
mov eax, dword [esp + 0x30]
add eax, edx
mov dword [edi + 4], eax
jmp 0x46ca76
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [edi + 4], edx
mov eax, dword [esp + 0x24]
cmp eax, ecx
jle 0x46ca8c
sub ebx, eax
mov dword [edi + 0xc], ebx
mov ebx, dword [esp + 0x14]
jmp 0x46cb85
sub ebx, ecx
mov dword [edi + 0xc], ebx
mov ebx, dword [esp + 0x14]
jmp 0x46cb85
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x244]
push ecx
lea edx, [esi + 0xb0]
push edx
push eax
mov eax, dword [esi]
mov edx, dword [eax + 0x9c]
mov ecx, esi
call edx
fld dword [esi + 0xa8]
mov edx, dword [esi + 0xa0]
push eax
mov eax, dword [esp + 0x60]
push 1
push ecx
mov ecx, dword [esi + 0xa4]
fstp dword [esp]
push eax
push ecx
push edx
push esi
call fcn.00476560
add esp, 0x28
jmp 0x46caea
cmp byte [esp + 0x64], 0
jne 0x46caf4
cmp dword [esp + 0x58], edi
je 0x46cb85
call fcn.0040928f
test eax, eax
jne 0x46cb0a
cmp word [esi + 0x94], di
je 0x46cb0a
xor ebp, ebp
jmp 0x46cb0f
mov ebp, 1
mov edx, dword [esi + 0x7c]
cmp dword [edx + 0x2cc], 0
mov edi, dword [esp + 0x54]
je 0x46cb2e
cmp dword [esp + 0x4c], 0
jne 0x46cb2e
test edi, edi
je 0x46cb2e
xor ecx, ecx
jmp 0x46cb33
mov ecx, 1
mov eax, edx
mov ebx, dword [eax + 0x244]
mov eax, dword [eax + 0x264]
push ebx
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x68]
push eax
test edi, edi
setne al
push ebx
push eax
push ebp
mov eax, dword [esp + 0x70]
fld dword [esi + 0xa8]
push edx
mov edx, dword [esp + 0x78]
push edx
mov edx, dword [esi + 0xa4]
push eax
mov eax, dword [esi + 0xa0]
push ecx
push ecx
mov ecx, dword [esp + 0x7c]
fstp dword [esp]
push ecx
push edx
push eax
call fcn.00477270
add esp, 0x38
test ebx, ebx
je 0x46cb94
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push 1
mov ecx, ebx
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cbb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cbe1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x20