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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x57f7c4]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
xor ebx, ebx
push ebp
push edi
mov dword [esp + 0x18], ecx
cmp dword [esi + 0xe0], ebx
je 0x49686a
mov dword [eax + 0x24], edx
mov eax, dword [esi + 0xe4]
lea ebp, [eax - 1]
inc eax
cmp ebp, ebx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xe8]
lea edi, [eax + 1]
mov dword [esp + 0x20], ebp
lea ecx, [eax - 1]
mov dword [esp + 0x28], edi
jge 0x496356
mov dword [esp + 0x20], ebx
mov ebp, ebx
mov edx, dword [esi + 0xe0]
mov eax, dword [edx + 0x2c]
cmp dword [esp + 0x24], eax
jl 0x49636a
dec eax
mov dword [esp + 0x24], eax
cmp ecx, ebx
jge 0x496370
xor ecx, ecx
mov eax, dword [edx + 0x30]
cmp edi, eax
jl 0x49637c
dec eax
mov dword [esp + 0x28], eax
cmp ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
movzx edx, word [eax + 0x68]
mov dword [esp + 0x30], edx
movzx edx, word [eax + 0x6a]
movzx eax, word [eax + 0x6c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov edi, ecx
mov dword [esp + 0x14], ecx
jg 0x49686a
jmp 0x4963b0
cmp ebp, dword [esp + 0x24]
jg 0x49685b
mov eax, dword [esp + 0x24]
imul ebp, ebp, 0x124
sub eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebp
inc eax
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + edi*4]
lea ecx, [eax + ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0xe0]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + edi*4]
mov edx, dword [eax + ebp]
mov ecx, dword [edx + 0xc]
add eax, ebp
cmp ecx, ebx
je 0x496405
lea edi, [ecx - 8]
jmp 0x496407
xor edi, edi
mov dword [eax + 4], edi
cmp edi, edx
je 0x4965d5
cmp edi, ebx
je 0x4965d5
lea ebx, [ebx]
cmp dword [edi + 0x1444], 1
je 0x4965a2
mov edx, esi
mov eax, edi
call fcn.00457dc0
test al, al
jne 0x4965a2
cmp byte [edi + 0x5815], bl
je 0x4965a2
cmp byte [edi + 0x5814], bl
je 0x4965a2
fld dword [edi + 0xd0]
lea ebp, [esi + 0xd0]
fsub dword [ebp]
push ecx
fstp dword [esp + 0x14]
fld dword [edi + 0xd8]
fsub dword [ebp + 8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fld dword [esp + 0x14]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0041b8a0
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 0x57]
mov dword [esp + 0x14], edx
add esp, 4
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
jne 0x49659e
mov ecx, edi
call fcn.00499980
mov ecx, dword [esi + 0xdc]
lea eax, [esp + 0x30]
push eax
push ecx
push 1
call fcn.004581f0
test al, al
je 0x49651f
mov eax, dword [esi + 0x1444]
cmp eax, ebx
je 0x49650e
mov ecx, 1
cmp eax, ecx
je 0x49650e
cmp dword [esi + 0x1270], ecx
mov dword [esi + 0x1444], ebx
mov dword [esi + 0x1544], ebx
mov dword [esi + 0x1454], ebx
mov dword [esi + 0x1458], ebx
jge 0x49650e
mov dword [esi + 0x1270], ecx
mov edx, dword [esi + 0xdc]
push ebx
push edx
push 1
mov ecx, edi
call fcn.004654c0
mov eax, 0x513
mov word [esp + 0x40], ax
mov eax, dword [esi + 0xdc]
mov byte [esp + 0x42], bl
mov dword [esp + 0x43], eax
mov ecx, dword [edi + 0xdc]
mov dword [esp + 0x47], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
mov cl, byte [ecx + 2]
mov word [esp + 0x4b], dx
movzx edx, word [esp + 0x30]
mov byte [esp + 0x4d], cl
mov cx, word [esp + 0x34]
mov word [esp + 0x4e], dx
movzx edx, word [esp + 0x38]
mov word [esp + 0x50], cx
mov ecx, dword [esi + 0xe0]
mov word [esp + 0x52], dx
cmp ecx, ebx
je 0x49659e
mov edx, dword [edi + 0xdc]
fld dword [0x574168]
push 5
push edx
push eax
push ecx
fstp dword [esp]
push ebp
push 0x14
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.00427cf0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [esp + 0x14]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ebp + 4]
mov ecx, dword [ecx + 0xc]
add eax, ebp
cmp ecx, ebx
je 0x4965c4
lea edi, [ecx - 8]
jmp 0x4965c6
xor edi, edi
mov dword [eax + 4], edi
cmp edi, dword [eax]
je 0x4965d5
cmp edi, ebx
jne 0x496420
mov edx, dword [esi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
lea eax, [edx + ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx + 0x34]
mov edi, dword [esp + 0x14]
mov eax, dword [edx + edi*4]
lea ecx, [eax + ebp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esi + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + ebp + 0x2c]
mov eax, dword [edx + 0x78]
lea ecx, [ecx + ebp + 0x2c]
cmp eax, ebx
je 0x49662b
lea edi, [eax - 0x74]
jmp 0x49662d
xor edi, edi
mov dword [ecx + 4], edi
cmp edi, edx
je 0x496823
cmp edi, ebx
je 0x496823
cmp dword [edi + 0x31c], ebx
jne 0x4967ee
cmp dword [edi + 0x70], ebx
je 0x496669
cmp dword [edi + 0x6c], ebx
jne 0x49665a
xor eax, eax
jmp 0x49666f
lea eax, [edi + 0x50]
call fcn.00425af0
mov edx, dword [eax]
mov eax, dword [edx + 0x48]
jmp 0x49666f
mov eax, dword [edi + 0x1a8]
cmp eax, 2
je 0x4967ee
movzx eax, byte [esi + 0x12d]
mov ecx, dword [edi + 0xd4]
cmp dword [ecx + 0x78], eax
je 0x4967ee
fld dword [edi + 0x7c]
lea ebp, [esi + 0xd0]
fsub dword [ebp]
push ecx
fstp dword [esp + 0x30]
fld dword [edi + 0x84]
fsub dword [ebp + 8]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x30]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0041b8a0
mov edx, dword [esp + 0x1c]
movzx eax, byte [edx + 0x57]
mov dword [esp + 0x14], eax
add esp, 4
fild dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
jne 0x4967ea
mov eax, dword [esi + 0x122c]
mov ecx, edx
movzx edx, word [ecx + 0x64]
mov ecx, dword [esi + 0xdc]
push ebx
push edx
push eax
push ecx
push 1
push edi
lea eax, [esp + 0x48]
call fcn.004a1980
test al, al
je 0x49675d
mov eax, dword [esi + 0x1444]
cmp eax, ebx
je 0x49674b
mov ecx, 1
cmp eax, ecx
je 0x49674b
cmp dword [esi + 0x1270], ecx
mov dword [esi + 0x1444], ebx
mov dword [esi + 0x1544], ebx
mov dword [esi + 0x1454], ebx
mov dword [esi + 0x1458], ebx
jge 0x49674b
mov dword [esi + 0x1270], ecx
mov edx, dword [esi + 0xdc]
push edx
push 1
mov ecx, edi
call fcn.004a1c20
jmp 0x496767
push 1
push esi
mov ecx, edi
call fcn.004b4010
mov eax, 0x519
mov word [esp + 0x40], ax
mov eax, dword [esi + 0xdc]
mov byte [esp + 0x42], bl
mov dword [esp + 0x43], eax
mov ecx, dword [edi + 0x88]
mov dword [esp + 0x47], ecx
mov ecx, dword [esp + 0x18]
movzx edx, word [ecx]
mov cl, byte [ecx + 2]
mov word [esp + 0x4b], dx
movzx edx, word [esp + 0x30]
mov byte [esp + 0x4d], cl
mov cx, word [esp + 0x34]
mov word [esp + 0x4e], dx
movzx edx, word [esp + 0x38]
mov word [esp + 0x50], cx
mov ecx, dword [esi + 0xe0]
mov word [esp + 0x52], dx
cmp ecx, ebx
je 0x4967e0
fld dword [0x574168]
push 5
push ebx
push eax
push ecx
fstp dword [esp]
push ebp
push 0x14
lea eax, [esp + 0x58]
push eax
push ecx
call fcn.00427cf0
push 1
push esi
mov ecx, edi
call fcn.004b4010
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esi + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [esp + 0x14]
mov ecx, dword [edx + eax*4]
mov edx, dword [ecx + ebp + 0x30]
lea eax, [ecx + ebp + 0x2c]
mov ecx, dword [edx + 0x78]
cmp ecx, ebx
je 0x496812
lea edi, [ecx - 0x74]
jmp 0x496814
xor edi, edi
mov dword [eax + 4], edi
cmp edi, dword [eax]
je 0x496823
cmp edi, ebx
jne 0x496640
mov eax, dword [esi + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [esp + 0x14]
mov eax, dword [ecx + edx*4]
lea ecx, [eax + ebp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x14]
add ebp, 0x124
sub dword [esp + 0x3c], 1
mov dword [esp + 0x1c], ebp
jne 0x4963d1
mov ebp, dword [esp + 0x20]
inc edi
cmp edi, dword [esp + 0x28]
mov dword [esp + 0x14], edi
jle 0x4963b0
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051a8be
add esp, 0x4c
ret 4