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

Disassembly:
sub esp, 0xe0
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x118]
mov eax, dword [ebp + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x10]
and eax, 0xffffc000
cdq
mov ecx, dword [ebp + 0x6c]
and edx, 0x3fff
add eax, edx
mov dword [esp + 0x48], ecx
mov ecx, dword [ebp + 0x18]
mov esi, eax
lea eax, [ecx - 1]
or eax, 0x3fff
sar esi, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
mov edi, dword [ebp + 0x1c]
sar ebx, 0xe
lea eax, [edi - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x44]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x4c]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [ebp + 0x10]
sar eax, 0xe
mov dword [esp + 0x90], eax
lea eax, [esi + 1]
shl eax, 0xe
sub eax, edx
mov edx, dword [esp + 0x30]
shl edx, 0xe
sub ecx, edx
add ecx, 0x4000
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebx + 1]
shl ecx, 0xe
sub ecx, eax
mov eax, dword [esp + 0x40]
mov edx, eax
shl edx, 0xe
sub edi, edx
add edi, 0x4000
sub eax, ebx
cmp eax, 2
mov dword [esp + 0x84], esi
mov dword [esp + 0x94], edi
jge 0x53aac1
mov ecx, dword [ebp + 0x1c]
sub ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x30]
sub eax, esi
cmp eax, 2
jge 0x53aad6
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 0x44]
sar edx, 1
lea eax, [edx + eax + 0x2000]
mov dword [esp + 0x14], eax
cmp ebx, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x6c], ebx
jge 0x53afe1
mov eax, dword [esp + 0x14]
mov edi, dword [ebp + 0x40]
mov ecx, dword [esp + 0x68]
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
and eax, 0x80003fff
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ecx
jns 0x53ab36
dec eax
or eax, 0xffffc000
inc eax
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x90]
sar eax, 2
shl eax, 4
add eax, 0x6b3960
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 8]
imul eax, ebx
add eax, ecx
lea ecx, [esi*4]
add eax, ecx
push edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0xac]
push edx
call fcn.00537220
cmp esi, dword [esp + 0x30]
mov dword [esp + 0x64], esi
jge 0x53af82
jmp 0x53ab90
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov eax, edi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
lea eax, [ecx + edi - 1]
or eax, 0x3fff
sar ebx, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov esi, eax
sar esi, 0xe
mov eax, esi
shl eax, 0xe
sub ecx, eax
lea edx, [ebx + 1]
shl edx, 0xe
mov eax, esi
sub eax, ebx
sub edx, edi
cmp eax, 2
lea ecx, [ecx + edi + 0x4000]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x88], eax
jge 0x53ac0e
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0xb0]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x38]
dec esi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x58], esi
lea ecx, [esp + 0xb4]
nop
mov eax, dword [esp + 0x44]
mov eax, dword [esp + eax*4 + 0xa0]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x80]
add eax, edi
imul eax, dword [esp + 0x70]
mov edi, dword [ecx - 4]
add eax, esi
movzx esi, byte [eax + ebx*4]
imul esi, edx
mov ebp, dword [ecx]
add edi, esi
movzx esi, byte [eax + ebx*4 + 1]
imul esi, edx
add esi, ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0x1c], esi
mov dword [ecx], esi
movzx esi, byte [eax + ebx*4 + 2]
imul esi, edx
add esi, ebp
mov ebp, dword [ecx + 8]
mov dword [esp + 0x24], esi
mov dword [ecx + 4], esi
movzx esi, byte [eax + ebx*4 + 3]
imul esi, edx
add ebp, esi
lea esi, [ebx + 1]
cmp esi, dword [esp + 0x58]
mov dword [ecx - 4], edi
mov dword [ecx + 8], ebp
jge 0x53ad42
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], edx
sub edi, esi
lea edx, [eax + esi*4 + 2]
mov dword [esp + 0x1c], ebp
add esi, edi
movzx ebx, byte [edx - 2]
mov ebp, dword [esp + 0x34]
shl ebx, 0xe
add ebp, ebx
movzx ebx, byte [edx - 1]
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x3c]
shl ebx, 0xe
add ebp, ebx
movzx ebx, byte [edx]
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x24]
shl ebx, 0xe
add ebp, ebx
movzx ebx, byte [edx + 1]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x1c]
shl ebx, 0xe
add ebp, ebx
add edx, 4
dec edi
mov dword [esp + 0x1c], ebp
jne 0x53acd5
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x9c]
mov dword [ecx - 4], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
mov edx, ebp
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x4c]
cmp dword [esp + 0x88], 1
mov edi, dword [esp + 0x50]
mov ebp, dword [esp + 0x2c]
jle 0x53ad87
movzx ebp, byte [eax + esi*4]
imul ebp, edi
add dword [ecx - 4], ebp
movzx ebp, byte [eax + esi*4 + 1]
imul ebp, edi
add dword [ecx], ebp
movzx ebp, byte [eax + esi*4 + 2]
movzx eax, byte [eax + esi*4 + 3]
imul ebp, edi
mov esi, dword [ecx + 8]
imul eax, edi
add dword [ecx + 4], ebp
mov ebp, dword [esp + 0x2c]
add esi, eax
mov dword [ecx + 8], esi
mov eax, dword [esp + 0x44]
inc eax
add ecx, 0x10
cmp eax, 4
mov dword [esp + 0x44], eax
jl 0x53ac40
mov eax, dword [esp + 0x10]
mov ebx, 0x4000
cmp eax, ebx
jne 0x53adb3
cmp dword [esp + 0x20], ebx
je 0x53aefb
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x53aefb
mov edi, dword [esp + 0x28]
test edi, edi
jle 0x53af17
mov eax, dword [esp + 0x10]
imul dword [esp + 0x20]
shrd eax, edx, 0xe
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x5c]
imul eax, eax, 0xff
cdq
and edx, 0x3fff
push edi
add eax, edx
push ecx
mov ebx, eax
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x60]
push eax
sar ebx, 0xe
call fcn.00537860
movzx esi, byte [ebp]
movzx edx, bl
mov ebx, dword [esp + 0x54]
movzx eax, bl
sub eax, esi
imul eax, edx
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, esi
jns 0x53ae3e
xor ecx, ecx
jmp 0x53ae4b
cmp ecx, 0xff
jle 0x53ae4b
mov ecx, 0xff
movzx esi, byte [ebp + 1]
movzx eax, bh
sub eax, esi
imul eax, edx
mov byte [ebp], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, esi
jns 0x53ae71
xor ecx, ecx
jmp 0x53ae7e
cmp ecx, 0xff
jle 0x53ae7e
mov ecx, 0xff
mov bx, word [esp + 0x56]
movzx esi, byte [ebp + 2]
movzx eax, bl
sub eax, esi
imul eax, edx
mov byte [ebp + 1], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, esi
jns 0x53aea9
xor ecx, ecx
jmp 0x53aeb6
cmp ecx, 0xff
jle 0x53aeb6
mov ecx, 0xff
movzx esi, byte [ebp + 3]
movzx eax, bh
sub eax, esi
imul eax, edx
mov byte [ebp + 2], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, esi
jns 0x53aee4
xor ecx, ecx
mov byte [ebp + 3], cl
mov ebx, 0x4000
jmp 0x53af17
cmp ecx, 0xff
jle 0x53aef1
mov ecx, 0xff
mov byte [ebp + 3], cl
mov ebx, 0x4000
jmp 0x53af17
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0xb8]
push eax
push ebp
call fcn.00537860
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x64]
add ebp, 4
lea eax, [esi - 2]
cmp ecx, eax
mov dword [esp + 0x2c], ebp
jne 0x53af55
mov eax, dword [esp + 0x10]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], eax
jmp 0x53af63
mov edx, dword [esp + 0x18]
add edi, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], edi
mov ebp, dword [esp + 0x118]
inc ecx
cmp ecx, esi
mov dword [esp + 0x64], ecx
jl 0x53ab8c
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x40]
lea eax, [ecx - 2]
cmp ebx, eax
jne 0x53afbe
mov eax, dword [esp + 0x20]
imul dword [esp + 0x48]
shrd eax, edx, 0xe
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x8c]
add edx, eax
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x20], edx
jmp 0x53afd4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
add edx, eax
mov dword [esp + 0x20], 0x4000
mov dword [esp + 0x14], edx
inc ebx
cmp ebx, ecx
mov dword [esp + 0x6c], ebx
jl 0x53ab01
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe0
ret 0x30