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

Disassembly:
push 0xfc
mov eax, 0x66ffcf
call fcn.0062f29c
mov edi, dword [ebp + 8]
or dword [edi + 0x2da0], 0xffffffff
xor ebx, ebx
lea esi, [edi + 0x1998]
mov eax, dword [esi]
call fcn.005cc966
test al, al
jne 0x514858
mov eax, dword [esi]
cmp ebx, dword [ebp + 0xc]
jne 0x514853
call fcn.005cc8f5
jmp 0x514858
call fcn.005cc904
inc ebx
add esi, 4
cmp ebx, 0xa
jl 0x51483a
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2d9c], eax
xor edx, edx
lea ecx, [edi + 0x1ad8]
mov eax, dword [ecx]
test eax, eax
je 0x514898
mov esi, dword [edi + 0x2d98]
imul esi, esi, 0xa
add esi, dword [edi + 0x2d9c]
cmp edx, esi
jne 0x514894
mov dword [eax + 0x2c], 0xff
jmp 0x514898
and dword [eax + 0x2c], 0
inc edx
add ecx, 4
cmp edx, 0x64
jb 0x514872
lea eax, [edi + 0x1b8]
mov ebx, 0x1f4
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
call fcn.005cc87b
add dword [ebp + 0xc], 4
dec dword [ebp - 0x10]
jne 0x5148b2
lea eax, [edi + 0x988]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
call fcn.005cc87b
add dword [ebp + 0xc], 4
dec dword [ebp - 0x10]
jne 0x5148d1
lea eax, [edi + 0x1158]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
call fcn.005ccf0d
add dword [ebp + 0xc], 4
dec dword [ebp - 0x10]
jne 0x5148f0
lea esi, [edi + 0x2dcc]
call fcn.004ad2e2
add esi, 0x5ebe8
dec ebx
jne 0x514909
mov eax, dword [edi + 0x1c]
imul eax, dword [edi + 0x18]
and dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x514c2a
lea eax, [edi + 0x3c]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x20]
mov dword [ebp - 0x20], eax
lea esi, [edi + 0x1b8]
lea eax, [edi + 0x2dd0]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
jmp 0x514952
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
push dword [edi + 0xb4]
mov ebx, dword [esi]
push dword [edi + 0xb0]
push dword [edi + 0xac]
push dword [edi + 0xa8]
push dword [edi + 0xa4]
push dword [edi + 0xa0]
push dword [edi + 0x9c]
push dword [edi + 0x98]
push dword [edi + 0x94]
push dword [edi + 0x90]
push dword [edi + 0x64]
push dword [edi + 0x60]
push 1
push dword [ebp - 0x1c]
push 0
call fcn.005cc613
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
cdq
idiv ecx
mov ecx, dword [edi + 0xd0]
imul ecx, edx
mov edx, dword [edi + 0xd4]
add ecx, dword [edi + 0xc8]
imul edx, eax
add edx, dword [edi + 0xcc]
mov eax, dword [esi]
push edx
push ecx
call fcn.005cc977
mov eax, dword [esi]
mov dword [eax + 0x20], 0xff
push dword [edi + 0x8c]
mov ebx, dword [esi + 0x7d0]
push dword [edi + 0x88]
push dword [edi + 0x84]
push dword [edi + 0x80]
push dword [edi + 0x7c]
push dword [edi + 0x78]
push dword [edi + 0x74]
push dword [edi + 0x70]
push dword [edi + 0x6c]
push dword [edi + 0x68]
push dword [edi + 0x5c]
push dword [edi + 0x58]
push 1
push dword [ebp - 0x20]
push 0
call fcn.005cc613
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x18]
mov eax, ebx
cdq
idiv ecx
mov ecx, dword [edi + 0xc0]
imul ecx, edx
mov edx, dword [edi + 0xc4]
add ecx, dword [edi + 0xb8]
imul edx, eax
add edx, dword [edi + 0xbc]
mov eax, dword [esi + 0x7d0]
push edx
push ecx
call fcn.005cc977
mov esi, dword [esi + 0x7d0]
mov dword [esi + 0x20], 0xff
mov eax, dword [edi + 0x2d9c]
imul eax, dword [ebp - 0x10]
lea eax, [eax + ebx + 1]
push eax
push 0x68d738
lea esi, [ebp - 0xb4]
call fcn.004af643
mov esi, eax
and dword [ebp - 4], 0
lea ecx, [ebp - 0xec]
call fcn.004afd90
mov byte [ebp - 4], 1
push esi
push eax
lea edi, [ebp - 0x7c]
call fcn.0041c0b0
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.004af87b
add esp, 0x14
mov edi, dword [ebp - 0x18]
push eax
lea ecx, [edi - 4]
mov byte [ebp - 4], 3
call fcn.004ad371
lea ecx, [ebp - 0x44]
call fcn.00404660
lea ecx, [ebp - 0x7c]
call fcn.00404660
lea ecx, [ebp - 0xec]
call fcn.00404660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.00404660
cmp byte [edi], 0
mov ebx, dword [ebp + 8]
je 0x514bec
mov eax, dword [ebx + 0x2d9c]
imul eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + ecx + 1]
push eax
push 0x68d74c
lea esi, [ebp - 0x108]
mov dword [ebp - 0x24], 1
call fcn.004af643
mov esi, eax
lea ecx, [ebp - 0xd0]
mov dword [ebp - 4], 4
call fcn.004afd90
push esi
push eax
lea edi, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.0041c0b0
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.004af87b
add esp, 0x14
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 7
push dword [ebp - 0x24]
xor ecx, ecx
inc ecx
push ecx
push 0
push eax
mov eax, dword [esi + 0xfa0]
call fcn.005cce69
lea ecx, [ebp - 0x60]
call fcn.00404660
mov ecx, edi
call fcn.00404660
lea ecx, [ebp - 0xd0]
call fcn.00404660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x108]
call fcn.00404660
mov eax, dword [esi + 0xfa0]
xor ecx, ecx
mov dword [eax + 0x54], ecx
xor edx, edx
mov dword [eax + 0x58], edx
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp + 0xc]
cdq
idiv ecx
mov ecx, dword [ebx + 0xe0]
mov edi, dword [ebp - 0x18]
imul ecx, edx
mov edx, dword [ebx + 0xe4]
add ecx, dword [ebx + 0xd8]
imul edx, eax
add edx, dword [ebx + 0xdc]
mov eax, dword [esi + 0xfa0]
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], edx
mov eax, dword [esi + 0xfa0]
mov dword [eax + 0x2c], 0xff
jmp 0x514bef
mov esi, dword [ebp - 0x14]
cmp byte [ebx + 0x14], 0
je 0x514c0c
cmp byte [edi], 0
jne 0x514c0c
mov eax, dword [esi]
call fcn.005cc913
mov eax, dword [esi + 0x7d0]
call fcn.005cc913
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
add esi, 4
add edi, 0x5ebe8
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
jl 0x51494c
call fcn.0062f374
ret 8