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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov ebx, dword [ebp + 0xe0]
push esi
push edi
test ebx, ebx
je 0x497a1e
mov eax, dword [ebp + 0xe4]
lea edx, [eax - 1]
lea esi, [eax + 1]
mov eax, dword [ebp + 0xe8]
lea edi, [eax + 1]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], esi
lea ecx, [eax - 1]
mov dword [esp + 0x44], edi
test edx, edx
jge 0x4977fd
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x2c]
cmp esi, eax
jl 0x49780b
dec eax
mov dword [esp + 0x14], eax
mov esi, eax
test ecx, ecx
jge 0x497811
xor ecx, ecx
mov eax, dword [ebx + 0x30]
cmp edi, eax
jl 0x49781f
dec eax
mov dword [esp + 0x44], eax
mov edi, eax
cmp ecx, edi
mov ebx, ecx
mov dword [esp + 0x24], ecx
jg 0x497a1e
lea ecx, [ecx]
cmp edx, esi
jg 0x497a11
mov edi, edx
imul edi, edi, 0x124
sub esi, edx
inc esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
jmp 0x497850
mov eax, dword [ebp + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 0xe0]
mov edx, dword [ecx + 0x34]
mov eax, dword [edx + ebx*4]
mov edx, dword [eax + edi + 0x2c]
lea ecx, [eax + edi + 0x2c]
mov eax, dword [edx + 0x78]
test eax, eax
je 0x497887
add eax, 0xffffff8c
jmp 0x497889
xor eax, eax
mov dword [ecx + 4], eax
cmp eax, edx
je 0x4979d7
mov esi, eax
test esi, esi
je 0x4979d3
mov edi, edi
cmp dword [esi + 0x70], 0
je 0x497922
cmp dword [esi + 0x6c], 0
jne 0x4978b0
xor eax, eax
jmp 0x497928
mov eax, dword [esi + 0x68]
mov edi, dword [esi + 0x6c]
add edi, eax
cmp eax, edi
jbe 0x4978c1
call fcn.0051b1ad
mov ebx, dword [esi + 0x50]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edi
test ebx, ebx
jne 0x4978ec
call fcn.0051b1ad
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
add ecx, dword [eax + 0x18]
dec edi
cmp edi, ecx
ja 0x4978f9
test ebx, ebx
je 0x4978f2
mov ebx, dword [ebx]
jmp 0x4978f4
mov eax, dword [ebx]
mov ecx, eax
jmp 0x4978d9
xor ebx, ebx
cmp edi, dword [ebx + 0x18]
jae 0x4978fe
call fcn.0051b1ad
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
call fcn.00425b90
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
jmp 0x497928
mov eax, dword [esi + 0x1a8]
cmp eax, 2
je 0x4979a2
fld dword [esi + 0x7c]
push ecx
fsub dword [ebp + 0xd0]
fstp dword [esp + 0x30]
fld dword [esi + 0x84]
fsub dword [ebp + 0xd8]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
call fcn.0041b8a0
fld dword [esp + 0x4c]
add esp, 4
fcompp
fnstsw ax
test ah, 1
jne 0x4979a2
push 1
push ebp
mov ecx, esi
call fcn.004b4010
mov eax, dword [ebp + 0x122c]
mov edx, dword [esp + 0x4c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp + 0xdc]
push ecx
push esi
call fcn.004a1b70
mov edx, dword [ebp + 0xe0]
mov eax, dword [edx + 0x34]
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx + edi + 0x30]
lea eax, [ecx + edi + 0x2c]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4979c2
lea esi, [ecx - 0x74]
jmp 0x4979c4
xor esi, esi
mov dword [eax + 4], esi
cmp esi, dword [eax]
je 0x4979d3
test esi, esi
jne 0x4978a0
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0xe0]
mov ecx, dword [eax + 0x34]
mov edx, dword [ecx + ebx*4]
lea eax, [edx + edi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x124
sub esi, 1
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
jne 0x497850
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
inc ebx
cmp ebx, edi
mov dword [esp + 0x24], ebx
jle 0x497830
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 0xc