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

Disassembly:
sub esp, 0xe4
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x11c]
mov eax, dword [esi + 0x68]
mov dword [esp + 0x38], 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 + 0x28], eax
mov dword [esp + 0x68], 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 + 0x34], eax
mov eax, dword [esi + 0x14]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebx, eax
mov edi, dword [esi + 0x1c]
lea eax, [edi - 1]
or eax, 0x3fff
sar ebx, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov ebp, eax
mov eax, dword [esi + 0x40]
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x48]
sar ebp, 0xe
dec eax
or eax, 0x3fff
inc eax
cdq
and edx, 0x3fff
add eax, edx
mov edx, dword [esp + 0x28]
sar eax, 0xe
mov dword [esp + 0x74], eax
lea eax, [edx + 1]
mov edx, dword [esi + 0x10]
shl eax, 0xe
sub eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], eax
mov eax, edx
shl eax, 0xe
sub ecx, eax
add ecx, 0x4000
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
shl eax, 0xe
sub eax, ecx
mov ecx, ebp
shl ecx, 0xe
sub edi, ecx
add edi, 0x4000
mov ecx, ebp
mov dword [esp + 0x88], ebp
mov dword [esp + 0x98], edi
sub ecx, ebx
cmp ecx, 2
jge 0x5397b5
mov eax, dword [esi + 0x1c]
sub eax, dword [esi + 0x14]
sub edx, dword [esp + 0x28]
cmp edx, 2
jge 0x5397c8
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x10]
mov dword [esp + 0x50], ecx
cmp ebx, ebp
mov edi, dword [esi + 0x44]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], ebx
jge 0x539cd8
mov eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x7c], eax
jmp 0x5397f2
mov eax, dword [esp + 0x7c]
mov edx, dword [esi + 0x40]
lea ecx, [edx + eax + 0x2000]
mov eax, dword [esp + 0x50]
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x14]
imul dword [esp + 0x30]
shrd eax, edx, 0xe
mov dword [esp + 0x18], eax
mov eax, edi
and eax, 0xffffc000
cdq
and edx, 0x3fff
add eax, edx
mov ebp, eax
mov eax, dword [esp + 0x18]
lea eax, [eax + edi - 1]
or eax, 0x3fff
sar ebp, 0xe
inc eax
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
lea ebx, [ebp + 1]
shl ebx, 0xe
sub ebx, edi
mov edi, dword [esp + 0x18]
mov edx, eax
shl edx, 0xe
sub edi, edx
mov edx, dword [esp + 0x1c]
lea edx, [edi + edx + 0x4000]
mov dword [esp + 0xa0], edx
mov edx, eax
sub edx, ebp
cmp edx, 2
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x84], edx
jge 0x539893
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x40], ebx
mov edx, dword [esi + 8]
imul edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
shl edi, 2
add edx, edi
add edx, dword [esi + 4]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
cmp edx, edi
mov dword [esp + 0x30], edx
jge 0x539c7b
dec eax
mov dword [esp + 0x54], eax
jmp 0x5398d0
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x5c]
mov edi, edi
mov eax, dword [esp + 0x10]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x80], eax
mov eax, ecx
cdq
and edx, 0x3fff
add eax, edx
sar eax, 0xe
mov dword [esp + 0x60], eax
mov eax, ecx
and eax, 0x80003fff
jns 0x539905
dec eax
or eax, 0xffffc000
inc eax
mov ecx, dword [esp + 0x9c]
sar eax, 2
shl eax, 4
add eax, 0x6b3960
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x74]
push eax
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0xb0]
push eax
call fcn.00537220
mov edx, dword [esi + 0x38]
xor eax, eax
mov dword [esp + 0x64], edx
imul edx, ebp
mov ecx, 0x10
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x6c], edx
lea ecx, [esp + 0xb8]
jmp 0x539970
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + eax*4 + 0xa4]
mov edi, dword [esp + 0x60]
mov esi, dword [esp + 0x94]
add eax, edi
lea eax, [esi + eax*4]
mov esi, dword [ecx - 4]
add eax, edx
movzx edx, byte [eax]
mov edi, dword [ecx]
imul edx, ebx
add edx, esi
movzx esi, byte [eax + 1]
mov ebp, dword [ecx + 4]
imul esi, ebx
add esi, edi
movzx edi, byte [eax + 2]
imul edi, ebx
add edi, ebp
movzx ebp, byte [eax + 3]
imul ebp, ebx
mov ebx, dword [ecx + 8]
add ebx, ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x20], ebx
mov dword [ecx + 8], ebx
mov ebx, dword [esp + 0x5c]
inc ebx
cmp ebx, ebp
mov dword [ecx - 4], edx
mov dword [ecx], esi
mov dword [ecx + 4], edi
jge 0x539a3d
mov ebp, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x44], edi
sub edx, ebx
jmp 0x5399f0
mov edi, dword [esp + 0x64]
mov ebx, dword [esp + 0x44]
add eax, edi
movzx edi, byte [eax]
shl edi, 0xe
add ebp, edi
movzx edi, byte [eax + 1]
shl edi, 0xe
add esi, edi
movzx edi, byte [eax + 2]
shl edi, 0xe
add ebx, edi
movzx edi, byte [eax + 3]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x20]
shl edi, 0xe
add ebx, edi
dec edx
mov dword [esp + 0x20], ebx
jne 0x5399f0
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov edx, ebx
mov dword [ecx - 4], ebp
mov dword [ecx], esi
mov dword [ecx + 8], edx
cmp dword [esp + 0x84], 1
jle 0x539a8e
mov edx, dword [esp + 0x64]
movzx esi, byte [eax + edx]
mov ebp, dword [ecx - 4]
add eax, edx
mov edx, dword [esp + 0xa0]
mov ebx, dword [ecx]
imul esi, edx
add ebp, esi
movzx esi, byte [eax + 1]
mov edi, dword [ecx + 4]
imul esi, edx
add ebx, esi
movzx esi, byte [eax + 2]
movzx eax, byte [eax + 3]
imul esi, edx
imul eax, edx
mov edx, dword [ecx + 8]
add edi, esi
add edx, eax
mov dword [ecx - 4], ebp
mov dword [ecx], ebx
mov dword [ecx + 4], edi
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x4c]
inc eax
add ecx, 0x10
cmp eax, 4
mov dword [esp + 0x4c], eax
jl 0x539968
mov eax, dword [esp + 0x10]
mov ebp, 0x4000
cmp eax, ebp
jne 0x539aba
cmp dword [esp + 0x14], ebp
je 0x539bfa
mov eax, dword [esp + 0x124]
test eax, eax
jne 0x539bfa
mov ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x539c18
mov eax, dword [esp + 0x10]
imul dword [esp + 0x14]
shrd eax, edx, 0xe
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x8c]
imul eax, eax, 0xff
cdq
push ecx
mov ecx, dword [esp + 0x5c]
and edx, 0x3fff
add eax, edx
push ecx
mov ebx, eax
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x54]
push eax
sar ebx, 0xe
call fcn.00537860
mov esi, dword [esp + 0x2c]
movzx edi, byte [esi]
movzx edx, bl
mov ebx, dword [esp + 0x48]
movzx eax, bl
sub eax, edi
imul eax, edx
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x539b48
xor ecx, ecx
jmp 0x539b55
cmp ecx, 0xff
jle 0x539b55
mov ecx, 0xff
movzx edi, byte [esi + 1]
movzx eax, bh
sub eax, edi
imul eax, edx
mov byte [esi], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x539b7a
xor ecx, ecx
jmp 0x539b87
cmp ecx, 0xff
jle 0x539b87
mov ecx, 0xff
mov bx, word [esp + 0x4a]
movzx edi, byte [esi + 2]
movzx eax, bl
sub eax, edi
imul eax, edx
mov byte [esi + 1], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x539bb2
xor ecx, ecx
jmp 0x539bbf
cmp ecx, 0xff
jle 0x539bbf
mov ecx, 0xff
movzx edi, byte [esi + 3]
movzx eax, bh
sub eax, edi
imul eax, edx
mov byte [esi + 2], cl
add eax, 0x80
mov ecx, eax
sar ecx, 8
add ecx, eax
sar ecx, 8
add ecx, edi
jns 0x539be8
xor ecx, ecx
mov byte [esi + 3], cl
jmp 0x539c1c
cmp ecx, 0xff
jle 0x539bf5
mov ecx, 0xff
mov byte [esi + 3], cl
jmp 0x539c1c
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0xbc]
push eax
push esi
call fcn.00537860
jmp 0x539c1c
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
add esi, 4
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x30]
lea eax, [edi - 2]
cmp esi, eax
jne 0x539c50
mov eax, dword [esp + 0x10]
imul dword [esp + 0x38]
shrd eax, edx, 0xe
mov dword [esp + 0x70], eax
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], edx
jmp 0x539c5b
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x24]
add ecx, eax
inc esi
mov dword [esp + 0x30], esi
cmp esi, edi
mov esi, dword [esp + 0x11c]
mov dword [esp + 0x24], ecx
jl 0x5398c6
jmp 0x539c80
mov ebp, 0x4000
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
lea eax, [ebx - 2]
cmp ecx, eax
jne 0x539cbd
mov eax, dword [esp + 0x14]
imul dword [esp + 0x68]
shrd eax, edx, 0xe
mov dword [esp + 0x90], eax
add edi, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x14], eax
jmp 0x539cc7
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ebp
add edi, edx
inc ecx
cmp ecx, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x3c], ecx
jl 0x5397ee
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret 0x30