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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ebx, dword [ecx + 0x14]
xor esi, esi
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], esi
mov eax, dword [ebx + 0x94]
div dword [ebx + 0x98]
or byte [ebx + 0x14], 4
mov ecx, dword [ecx + 0x18]
mov edi, eax
neg eax
lea edx, [ecx - 1]
and edx, eax
inc edx
mov dword [ebp - 0x14], edx
cmp ecx, dword [ebx + 0x18]
jbe 0x53a80a
sub ecx, edx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x53a823
mov ecx, dword [ebx + 0x18]
lea eax, [edi - 1]
add eax, edx
cmp eax, ecx
jbe 0x53a81e
sub ecx, edx
inc ecx
mov dword [ebp - 4], ecx
jmp 0x53a823
mov ecx, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], esi
test ecx, ecx
jle 0x53aa2d
mov edi, edx
cmp dword [ebp - 0xc], 0
jne 0x53aa2d
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x18]
je 0x53a94d
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x53a94d
push edi
push eax
call fcn.005494a0
add esp, 8
test eax, eax
je 0x53a94a
mov eax, dword [ebx + 0xd4]
mov esi, dword [0x6d19e8]
mov ecx, esi
push 0
push edi
push dword [eax + 0x2c]
call dword [0x659730]
call esi
mov edx, eax
add esp, 0xc
test edx, edx
jne 0x53a8fd
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
inc edi
inc eax
mov dword [ebp - 0x18], eax
cmp eax, ecx
jl 0x53a830
cmp dword [ebp - 0xc], 0
jne 0x53aa2d
test esi, esi
je 0x53aa2d
mov edi, dword [ebp - 0x14]
mov eax, dword [ebx + 0xd4]
mov esi, dword [0x6d19e8]
mov ecx, esi
push 0
push edi
push dword [eax + 0x2c]
call dword [0x659730]
call esi
mov edx, eax
add esp, 0xc
test edx, edx
je 0x53aa1f
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x53a9b6
push edx
push edi
push ecx
call fcn.0053dac0
add esp, 0xc
jmp 0x53a9bd
mov eax, dword [edx + 4]
mov ecx, dword [ebx + 0xd4]
cmp dword [eax], 0
jne 0x53a918
push edx
push edi
push ecx
call fcn.0053dac0
add esp, 0xc
jmp 0x53a91f
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x53a88b
test byte [eax + 0x1c], 8
mov ecx, 1
mov esi, dword [ebp - 8]
cmovne esi, ecx
push eax
mov dword [ebp - 8], esi
call fcn.00565290
add esp, 4
jmp 0x53a88e
mov ecx, dword [ebp - 4]
mov eax, dword [0x6d1a80]
cdq
idiv dword [ebx + 0x98]
inc eax
cmp edi, eax
je 0x53a891
mov esi, dword [ebx + 0xcc]
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push ebx
mov ecx, esi
call dword [0x659730]
call esi
add esp, 0x10
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x53a88b
push dword [ebp - 0x10]
call fcn.0053bac0
mov esi, dword [ebp - 8]
mov ecx, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
test byte [eax + 0x1c], 8
cmovne esi, ecx
mov dword [ebp - 8], esi
call fcn.00565290
add esp, 8
jmp 0x53a88e
inc dword [ecx + 0xc]
inc word [eax + 0x1e]
test eax, eax
je 0x53aa1f
or word [eax + 0x1c], 8
test byte [eax + 0x1c], 0x20
je 0x53aa16
mov edx, dword [eax + 0x14]
dec dword [edx + 0x78]
mov ecx, dword [edx + 0x88]
mov dword [eax + 0x10], ecx
mov esi, dword [edx + 0x3c]
mov dword [edx + 0x88], eax
push dword [eax + 4]
mov ecx, dword [eax + 0x18]
mov eax, dword [edx + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00608a40
push edx
push eax
push esi
mov esi, dword [edi + 0x48]
mov ecx, esi
call dword [0x659730]
call esi
mov edi, dword [ebp - 0x14]
add esp, 0x10
jmp 0x53aa1f
push eax
call fcn.005660b0
add esp, 4
inc edi
sub dword [ebp - 4], 1
mov dword [ebp - 0x14], edi
jne 0x53a8b2
and byte [ebx + 0x14], 0xfb
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret