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

Disassembly:
sub esp, 0x130
push ebx
push ebp
mov ebp, dword [esp + 0x13c]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp]
call fcn.00479590
mov esi, eax
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x34], esi
je 0x460e56
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0xb4]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 0x810]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x148]
movsx eax, word [ecx + 0x1c]
movsx edx, word [ecx + 0x1e]
mov dword [esp + 0x18], eax
movsx eax, word [ecx + 0x20]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x98], 0x48
fmul dword [0x53de04]
mov byte [esp + 0x13], 1
fst dword [esp + 0x38]
fild dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x9c], eax
fmul dword [0x53de04]
mov eax, dword [ebp + 0x38]
mov dword [esp + 0xac], eax
movzx eax, byte [ebp + 0x55]
fst dword [esp + 0x3c]
mov dword [esp + 0xb4], eax
fild dword [esp + 0x18]
mov eax, dword [ebp + 0x44]
fmul dword [0x53de04]
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
fld st(1)
mov dword [esp + 0x94], edx
fstp dword [esp + 0x8c]
mov edx, dword [ebp + 0x40]
mov dword [esp + 0xa0], edx
fst dword [esp + 0x90]
movzx edx, byte [ebp + 0x54]
fxch st(1)
mov dword [esp + 0xb0], edx
fstp dword [esp + 0xa4]
movzx edx, word [ecx + 0x22]
fstp dword [esp + 0xa8]
fld dword [0x53a780]
fld dword [ebp + 0x38]
imul edx, edx, 0x1c
fucompp
add eax, edx
mov edx, dword [eax + 0x14]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 0x18]
mov dword [esp + 0xbc], edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc0], eax
fnstsw ax
test ah, 0x44
jnp 0x460807
mov dword [esp + 0xb4], ebx
mov byte [esp + 0x13], bl
mov eax, dword [ecx + 0x18]
movzx ecx, word [ecx + 0x14]
xor edx, edx
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x13]
test al, al
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
je 0x460951
mov eax, dword [edi + 0x24]
cmp eax, ebx
lea esi, [edi + 0x1c]
jle 0x460844
mov dword [esi + 0x14], ebx
mov byte [esi + 0xc], dl
mov edx, dword [esp + 0x38]
push edx
mov ecx, esi
call fcn.0045e100
mov eax, dword [esp + 0x3c]
push eax
mov ecx, esi
call fcn.0045e100
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0045e140
mov edx, dword [ebp + 0x3c]
push edx
mov ecx, esi
call fcn.0045e140
mov eax, dword [ebp + 0x40]
push eax
mov ecx, esi
call fcn.0045e140
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 8]
xor ecx, ecx
cmp eax, edx
mov ch, byte [ebp + 0x54]
mov cl, byte [ebp + 0x55]
jge 0x46089d
mov edx, dword [esi + 4]
mov byte [esi + 0xc], 0
mov dword [edx + eax*4], ecx
inc dword [esi + 0x14]
mov ebx, dword [esp + 0x148]
movzx eax, word [ebx + 0x22]
mov ecx, dword [ebp + 0x44]
imul eax, eax, 0x1c
mov edx, dword [eax + ecx + 0x14]
push edx
mov ecx, esi
call fcn.0045e140
movzx eax, word [ebx + 0x22]
mov ecx, dword [ebp + 0x44]
imul eax, eax, 0x1c
mov edx, dword [eax + ecx + 0x18]
push edx
mov ecx, esi
call fcn.0045e140
movzx eax, word [ebx + 0x22]
mov ecx, dword [ebp + 0x44]
imul eax, eax, 0x1c
mov edx, dword [eax + ecx + 0x10]
push edx
mov ecx, esi
call fcn.0045e140
mov al, byte [esi + 0xc]
test al, al
je 0x4608f2
mov esi, dword [esi + 0x10]
jmp 0x46090d
mov ecx, dword [esi + 0x14]
test ecx, ecx
jle 0x46090b
mov edx, dword [esi + 4]
lea eax, [esi + 0x10]
shl ecx, 2
call fcn.0045d870
mov esi, dword [eax]
jmp 0x46090d
xor esi, esi
mov eax, dword [edi + 0xc]
test eax, eax
mov dword [esp + 0x24], esi
jne 0x46091f
mov ecx, edi
call fcn.0045dcd0
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x40]
push ecx
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00502310
mov esi, eax
mov eax, dword [esp + 0x54]
add esp, 0x14
test eax, eax
mov dword [esp + 0x30], esi
jne 0x460dc2
mov esi, dword [esp + 0x34]
fld dword [esp + 0x14]
mov ecx, dword [esi + 0x2c]
fmul dword [ebp + 0x40]
mov ebx, dword [ecx + 0x1b8]
mov dword [esp + 0x38], ebx
fcomp dword [0x53dd68]
fnstsw ax
test ah, 1
jne 0x46097b
mov ebx, 7
mov dword [esp + 0x38], ebx
mov eax, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
lea esi, [edi + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 8]
test eax, eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x80], ebx
jle 0x4609ab
mov dword [esi + 0x14], 0
mov byte [esi + 0xc], 0
mov ecx, dword [edi + 0x50]
push ecx
mov ecx, esi
call fcn.0045e140
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 8]
jge 0x4609cb
mov edx, dword [esi + 4]
mov byte [esi + 0xc], 0
mov dword [edx + eax*4], ebx
inc dword [esi + 0x14]
mov eax, dword [edi + 0x4c]
push eax
mov ecx, esi
call fcn.0045e140
mov al, byte [esi + 0xc]
test al, al
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x18], ecx
je 0x4609ea
mov eax, dword [esi + 0x10]
jmp 0x460a09
mov ecx, dword [esi + 0x14]
test ecx, ecx
jle 0x460a07
mov edx, dword [esi + 4]
lea eax, [esi + 0x10]
shl ecx, 2
call fcn.0045d870
mov eax, dword [eax]
mov ebx, dword [esp + 0x38]
jmp 0x460a09
xor eax, eax
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x460a1b
mov ecx, edi
call fcn.0045dc70
mov eax, dword [edi + 8]
lea edx, [esp + 0x28]
push edx
mov edx, dword [edi + 4]
push 1
lea ecx, [esp + 0x24]
push ecx
push eax
push edx
call fcn.00502310
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
xor eax, eax
add esp, 0x14
cmp ecx, eax
jne 0x460cc5
mov ecx, dword [esi + 8]
cmp ebx, 7
mov ebx, dword [esp + 0x24]
jne 0x460afc
cmp ecx, eax
jle 0x460a63
mov dword [esi + 0x14], eax
mov byte [esi + 0xc], al
mov eax, dword [edi + 0x50]
push eax
mov ecx, esi
call fcn.0045e140
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx + 0x1b8]
push eax
mov ecx, esi
call fcn.0045e0e0
mov ecx, dword [edi + 0x4c]
push ecx
mov ecx, esi
call fcn.0045e140
mov ecx, esi
call fcn.0045e180
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x460aa7
mov ecx, edi
call fcn.0045dc70
mov ecx, dword [edi + 8]
lea edx, [esp + 0x28]
push edx
mov edx, dword [edi + 4]
push 1
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00502310
mov ecx, dword [esp + 0x3c]
add esp, 0x14
cmp ecx, 1
jne 0x460b78
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.0045dd30
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.005025c0
mov eax, dword [0x560bac]
xor ecx, ecx
add esp, 0xc
dec eax
mov dword [esp + 0x28], ecx
mov dword [0x560bac], eax
jmp 0x460b78
cmp ecx, eax
jle 0x460b07
mov dword [esi + 0x14], eax
mov byte [esi + 0xc], 0
mov edx, dword [edi + 0x50]
push edx
mov ecx, esi
call fcn.0045e140
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 8]
jge 0x460b2b
mov ecx, dword [esi + 4]
mov byte [esi + 0xc], 0
mov dword [ecx + eax*4], 7
inc dword [esi + 0x14]
mov edx, dword [edi + 0x4c]
push edx
mov ecx, esi
call fcn.0045e140
mov ecx, esi
call fcn.0045e180
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x460b4f
mov ecx, edi
call fcn.0045dc70
mov eax, dword [edi + 8]
lea ecx, [esp + 0x28]
push ecx
push 1
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [edi + 4]
push eax
call fcn.00502310
mov ecx, dword [esp + 0x3c]
add esp, 0x14
cmp ecx, 1
jne 0x460b78
mov dword [esp + 0x14], eax
test ecx, ecx
mov dword [esp + 0x24], ebx
jne 0x460cb5
mov ebx, dword [esp + 0x148]
mov ecx, dword [ebx + 0x10]
mov dx, word [ebx + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax + 0x2c]
mov word [esp + 0x50], dx
mov edx, dword [ecx + 0xb4]
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0x53dd7c
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], 0
mov byte [esp + 0x5c], 0
call fcn.0045e930
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x1c], 1
ja 0x460bfe
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x53dd7c
call fcn.0045e080
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 8
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx + 0xb4]
mov ecx, dword [ebx + 0x10]
push eax
push esi
push ecx
mov ecx, edi
call fcn.0045f940
mov eax, dword [edi + 4]
lea edx, [esp + 0x80]
push edx
push esi
push eax
call fcn.00500de0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x460c5c
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x53dd7c
call fcn.0045e080
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 8
mov ecx, dword [0x560ba4]
mov eax, dword [esp + 0x14]
push esi
inc ecx
lea edx, [esp + 0x20]
push edx
mov dword [0x560ba4], ecx
push eax
mov ecx, edi
call fcn.0045dd30
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00502430
add esp, 0x14
test eax, eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0x53dd7c
je 0x460ca2
call fcn.0045e080
jmp 0x460e4b
mov dword [esp + 0x14], esi
call fcn.0045e080
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x460cd8
inc dword [0x560ba0]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x460cd8
mov eax, dword [0x560ba0]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [0x560ba0], eax
mov dword [esp + 0x24], ecx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x114]
push edx
mov edx, dword [edi + 4]
lea eax, [esp + 0x9c]
push eax
push ecx
push edx
call fcn.00502d00
mov bl, byte [ebp + 0x54]
mov eax, dword [esp + 0x96]
mov ecx, dword [esp + 0x94]
xor edx, edx
test bl, bl
push 0xb
setne dl
push eax
mov eax, dword [edi + 4]
push ecx
push edx
push eax
call fcn.00501f50
mov esi, eax
add esp, 0x30
test esi, esi
je 0x460c44
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 4]
push esi
lea edx, [esp + 0x10c]
push edx
push eax
push ecx
call fcn.00503a50
mov al, byte [esp + 0x23]
add esp, 0x10
test al, al
je 0x460d9a
inc dword [esi + 0x10]
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x460d71
mov ecx, edi
call fcn.0045dcd0
mov ecx, dword [esp + 0x30]
mov eax, dword [edi + 0xc]
push esi
lea edx, [esp + 0x20]
push edx
mov edx, dword [edi + 4]
push ecx
push eax
push edx
call fcn.00502430
add esp, 0x14
test eax, eax
jne 0x460be6
inc dword [0x560bac]
mov dword [esp + 0x30], esi
xor eax, eax
mov edx, dword [esp + eax + 0xdc]
mov ecx, dword [esi + 8]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x2c
jl 0x460da0
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x148]
jmp 0x460dc8
inc dword [0x560ba8]
test esi, esi
je 0x460e4b
mov al, byte [esp + 0x13]
test al, al
je 0x460e1a
mov ecx, dword [esi + 8]
lea edx, [esp + 0x44]
xor eax, eax
sub ecx, edx
lea edx, [ecx + eax*4]
mov edx, dword [esp + edx + 0x44]
mov dword [esp + eax*4 + 0x44], edx
inc eax
cmp eax, 0xb
jl 0x460de3
lea eax, [esp + 0xc4]
push eax
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [edi + 4]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x98]
push eax
push ecx
call fcn.00503730
add esp, 0x14
mov eax, dword [esp + 0x70]
mov word [ebx], ax
mov dx, word [esi + 2]
add dx, ax
xor eax, eax
mov word [ebx + 2], dx
mov ax, word [esi + 4]
add ax, word [esp + 0x74]
neg eax
mov word [ebx + 4], ax
mov cx, word [esi + 4]
add cx, ax
mov word [ebx + 6], cx
mov dword [ebx + 0xc], esi
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 8