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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
push ebx
push esi
push edi
mov esi, dword [ebp + 0x2c]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x10]
and eax, 0xffffc000
cdq
mov ecx, dword [esi + 0x6c]
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x18]
lea eax, [ecx - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
mov edi, dword [esi + 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 + 0x50], eax
mov eax, dword [esi + 0x40]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0x48]
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 0xe
mov dword [esp + 0x88], eax
lea eax, [edx + 1]
mov edx, dword [esi + 0x10]
shl eax, 0xe
sub eax, edx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x20]
shl eax, 0xe
sub ecx, eax
add ecx, 0x4000
mov dword [esp + 0x74], ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
shl eax, 0xe
sub eax, ecx
mov ecx, dword [esp + 0x50]
mov edx, ecx
shl edx, 0xe
sub edi, edx
mov edx, ecx
add edi, 0x4000
sub edx, ebx
cmp edx, 2
mov dword [esp + 0x8c], edi
jge 0x539e06
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x14]
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x3c]
cmp edx, 2
jge 0x539e1d
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x10]
mov dword [esp + 0x60], edx
cmp ebx, ecx
mov edi, dword [esi + 0x44]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebx
jge 0x53a315
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x64], eax
jmp 0x539e50
mov eax, dword [esp + 0x64]
jmp 0x539e50
mov ecx, dword [esi + 0x40]
lea edx, [ecx + eax + 0x2000]
mov eax, dword [esp + 0x60]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x10]
imul dword [esp + 0x24]
shrd eax, edx, 0xe
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x28]
mov eax, edi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
sar ecx, 0xe
lea eax, [ebx + edi - 1]
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
lea edx, [ecx + 1]
shl edx, 0xe
sub edx, edi
mov dword [esp + 0x44], edx
sar eax, 0xe
mov edx, eax
shl edx, 0xe
sub ebx, edx
lea edx, [ebx + edi + 0x4000]
mov dword [esp + 0x80], edx
mov edx, eax
sub edx, ecx
cmp edx, 2
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x94], edx
jge 0x539ee9
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 8]
imul ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
lea ebx, [edx*4]
add ecx, ebx
add ecx, dword [esi + 4]
mov dword [esp + 0x1c], ecx
cmp edx, dword [esp + 0x20]
mov dword [esp + 0x24], edx
jge 0x53a2ba
dec eax
mov dword [esp + 0x78], eax
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
imul dword [esp + 0x30]
shrd eax, edx, 0xe
mov dword [esp + 0x7c], eax
mov eax, ebx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
and ebx, 0x80003fff
mov dword [esp + 0x48], eax
jns 0x539f4e
dec ebx
or ebx, 0xffffc000
inc ebx
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x90]
push edx
push eax
lea ecx, [esp + 0x50]
sar ebx, 2
push ecx
lea edx, [esp + 0xa4]
shl ebx, 4
push edx
add ebx, 0x6b3960
call fcn.00537220
xor eax, eax
mov ecx, 0x28
lea edi, [esp + 0xa8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x38]
mov dword [esp + 0x5c], eax
imul eax, dword [esp + 0x4c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], eax
lea ecx, [esp + 0xb0]
jmp 0x539fc0
mov eax, dword [esp + 0x70]
jmp 0x539fc0
mov edx, dword [esp + 0x40]
mov edx, dword [esp + edx*4 + 0x98]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
add edx, esi
mov esi, dword [esp + 0x38]
lea esi, [esi + edx*4]
add esi, eax
movzx eax, byte [esi]
imul eax, edi
cdq
add dword [ecx - 8], eax
adc dword [ecx - 4], edx
movzx eax, byte [esi + 1]
imul eax, edi
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
movzx eax, byte [esi + 2]
imul eax, edi
cdq
add dword [ecx + 8], eax
adc dword [ecx + 0xc], edx
movzx eax, byte [esi + 3]
imul eax, edi
mov edi, dword [ecx + 0x10]
cdq
add edi, eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0x10], edi
adc dword [ecx + 0x14], edx
mov edi, dword [esp + 0x78]
inc eax
cmp eax, edi
jge 0x53a072
sub edi, eax
jmp 0x53a030
add esi, dword [esp + 0x5c]
movzx eax, byte [esi]
shl eax, 0xe
cdq
add dword [ecx - 8], eax
adc dword [ecx - 4], edx
movzx eax, byte [esi + 1]
shl eax, 0xe
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
movzx eax, byte [esi + 2]
shl eax, 0xe
cdq
add dword [ecx + 8], eax
adc dword [ecx + 0xc], edx
movzx eax, byte [esi + 3]
shl eax, 0xe
cdq
add dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x14]
adc eax, edx
dec edi
mov dword [ecx + 0x14], eax
jne 0x53a030
cmp dword [esp + 0x94], 1
jle 0x53a0ca
mov edx, dword [esp + 0x5c]
movzx eax, byte [esi + edx]
mov edi, dword [esp + 0x80]
imul eax, edi
add esi, edx
cdq
add dword [ecx - 8], eax
adc dword [ecx - 4], edx
movzx eax, byte [esi + 1]
imul eax, edi
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
movzx eax, byte [esi + 2]
imul eax, edi
cdq
add dword [ecx + 8], eax
adc dword [ecx + 0xc], edx
movzx eax, byte [esi + 3]
mov esi, dword [ecx + 0x10]
imul eax, edi
cdq
add esi, eax
mov eax, dword [ecx + 0x14]
adc eax, edx
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x40]
inc eax
add ecx, 0x28
cmp eax, 4
mov dword [esp + 0x40], eax
jl 0x539fb0
mov eax, dword [esp + 0x14]
mov esi, 0x4000
cmp eax, esi
jne 0x53a0f6
cmp dword [esp + 0x10], esi
je 0x53a236
mov eax, dword [ebp + 0x34]
test eax, eax
jne 0x53a236
mov ecx, dword [esp + 0x28]
test ecx, ecx
jle 0x53a24e
mov eax, dword [esp + 0x14]
imul dword [esp + 0x10]
shrd eax, edx, 0xe
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
imul eax, eax, 0xff
cdq
and edx, 0x3fff
add eax, edx
push ecx
sar eax, 0xe
mov dword [esp + 0x3c], eax
push ebx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00537430
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x54]
movzx edi, byte [edx]
movzx esi, byte [esp + 0x38]
movzx eax, bl
sub eax, edi
imul eax, esi
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53a17a
xor ecx, ecx
jmp 0x53a187
cmp ecx, 0xff
jle 0x53a187
mov ecx, 0xff
movzx edi, byte [edx + 1]
movzx eax, bh
sub eax, edi
imul eax, esi
mov byte [edx], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53a1ac
xor ecx, ecx
jmp 0x53a1b9
cmp ecx, 0xff
jle 0x53a1b9
mov ecx, 0xff
mov bx, word [esp + 0x56]
movzx edi, byte [edx + 2]
movzx eax, bl
sub eax, edi
imul eax, esi
mov byte [edx + 1], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53a1e4
xor ecx, ecx
jmp 0x53a1f1
cmp ecx, 0xff
jle 0x53a1f1
mov ecx, 0xff
movzx edi, byte [edx + 3]
movzx eax, bh
sub eax, edi
imul eax, esi
mov byte [edx + 2], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x53a21f
xor ecx, ecx
mov byte [edx + 3], cl
mov esi, 0x4000
jmp 0x53a252
cmp ecx, 0xff
jle 0x53a22c
mov ecx, 0xff
mov byte [edx + 3], cl
mov esi, 0x4000
jmp 0x53a252
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0xb0]
push eax
push ecx
call fcn.00537430
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edx, 4
add eax, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x1c], edx
jne 0x53a290
mov eax, dword [esp + 0x14]
imul dword [esp + 0x30]
shrd eax, edx, 0xe
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x6c]
add eax, edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
jmp 0x53a2a2
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x7c]
add eax, edx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov esi, dword [ebp + 0x2c]
inc ecx
cmp ecx, eax
mov dword [esp + 0x24], ecx
jl 0x539f18
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
lea eax, [ebx - 2]
cmp ecx, eax
jne 0x53a2f4
mov eax, dword [esp + 0x10]
imul dword [esp + 0x58]
shrd eax, edx, 0xe
mov dword [esp + 0x84], eax
add edi, dword [esp + 0x84]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], eax
jmp 0x53a308
mov edx, dword [esp + 0x28]
add edx, edi
mov dword [esp + 0x10], 0x4000
mov dword [esp + 0x2c], edx
mov edi, edx
inc ecx
cmp ecx, ebx
mov dword [esp + 0x34], ecx
jl 0x539e43
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x30