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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1074]
mov ecx, dword [ebx + 0x59b4]
mov edx, dword [ebx + 0x1070]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x1114]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x31c]
mov eax, dword [ebx + 0x10b8]
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0xc48]
add eax, dword [edx + 0xc44]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x38], eax
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], ecx
mov cl, byte [edi + 8]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
mov eax, 1
shl eax, cl
mov ecx, dword [edx + 0x5d4]
sar esi, cl
mov dword [ebp - 0x28], ecx
mov dword [ebp + 8], eax
sar eax, cl
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
sar eax, cl
mov ecx, dword [ebx + 0x10f0]
mov dword [ebp - 0x34], eax
imul eax, dword [ebp - 0x30]
add eax, esi
add ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + 0x10ec]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebx + 0x10f4]
add ecx, eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
sar eax, 2
mov dword [ebp - 0x3c], eax
xor eax, eax
mov dword [ebp - 0x44], ecx
mov ecx, dword [ebp - 0x2c]
mov byte [edi + 0xb], 1
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], eax
mov byte [edi + 0xc0], al
mov byte [edi + 0x28], al
mov dword [edi + 0x2c], eax
cmp dword [ecx + 0x50], eax
je 0x532715
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x30]
push ecx
push eax
call fcn.0050aa30
mov edx, dword [ebp - 0xc]
add esp, 8
mov byte [edi + 9], al
cmp dword [ebx + 0x1254], 2
je 0x53274b
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push edx
mov edx, dword [ebp + 0xc]
push esi
push eax
push ecx
push edx
push ebx
call fcn.0050ab70
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
add esp, 0x18
neg eax
sbb eax, eax
and eax, 2
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov byte [edi + 0xa], al
test eax, eax
je 0x5328a8
push eax
mov eax, dword [ebp + 8]
push eax
push eax
lea esi, [edi + 0x30]
push ebx
call fcn.00531bc0
add esp, 0x10
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x532de6
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x34], 0
je 0x5327aa
cmp dword [esi + 0x28], 0
jne 0x5327aa
mov eax, dword [esi + 0x20]
movzx ecx, byte [edi + 8]
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
push ecx
push eax
push ecx
push eax
push edx
push ebx
call fcn.0050c1a0
add esp, 0x24
push edi
mov eax, ebx
call fcn.00531ed0
mov eax, dword [esi + 0x1c]
add esp, 4
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x38], eax
jle 0x53280f
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
sub esi, eax
sub ecx, eax
mov dword [ebp - 0x2c], edx
mov dl, byte [ebp + 0x14]
mov byte [esi + eax], dl
movzx edx, byte [ebp - 0x1c]
mov byte [eax], dl
movzx edx, byte [ebp - 0x38]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp - 0x2c]
jne 0x5327e0
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x20], ecx
add dword [ebp + 0x10], ecx
add eax, ecx
dec dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jne 0x5327d0
movzx ecx, byte [edi + 9]
xor eax, eax
cmp byte [edi + 0x28], al
setne al
lea eax, [eax + ecx*2]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x532868
mov ecx, dword [ebx + 0x10ac]
mov esi, dword [ebp - 0x10]
sar esi, 3
imul esi, ecx
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x14]
sar ecx, 3
add esi, ecx
add esi, dword [ebx + 0x10e8]
mov ebx, dword [ebp + 8]
sar ebx, 3
test ebx, ebx
jle 0x532868
mov dword [ebp + 0x10], ebx
mov edx, dword [ebp - 0x44]
push ebx
push edx
push esi
call fcn.004550c0
add esi, dword [ebp - 0x38]
add esp, 0xc
dec dword [ebp + 0x10]
jne 0x532852
mov eax, dword [edi + 0xc]
mov ecx, 1
cmp eax, ecx
jne 0x532d41
cmp byte [edi + 0x28], 0
mov eax, dword [ebp + 8]
jne 0x532cd5
cmp eax, 8
jne 0x532c92
cmp dword [edi + 0x10], 3
mov eax, dword [ebp - 4]
jne 0x532c85
add dword [eax], 4
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x1254], 2
je 0x5328c7
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x30]
push ecx
push eax
call fcn.0050aa50
mov edx, dword [ebp - 0xc]
add esp, 8
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0xc]
cmp ecx, 1
jne 0x5328d8
movzx eax, byte [edi + 8]
cmp eax, dword [ebp - 0x28]
jne 0x53291c
mov edx, dword [ebx + 0x1070]
mov eax, dword [edx + 0xc30]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 8]
push ecx
movzx ecx, byte [edi + 8]
push ecx
lea ecx, [eax + 0x30]
push ecx
push eax
call fcn.0050aa70
add esp, 0x18
mov dword [edi + 0x10], eax
cmp eax, 3
jne 0x532911
mov eax, 1
cmp dword [edi + 0xc], eax
je 0x532913
xor eax, eax
mov edx, dword [ebp - 0xc]
mov byte [edi + 0xc0], al
cmp dword [edi + 0xc], 1
jne 0x532a10
cmp dword [edi + 0x10], 0
jne 0x532955
cmp dword [edx + 0xc38], 0
je 0x532955
movzx eax, byte [edi + 8]
cmp eax, dword [edx + 0xc44]
jb 0x532955
cmp eax, dword [ebp - 0x38]
ja 0x532955
mov edx, dword [ebp - 8]
push edx
call fcn.0050bff0
add esp, 4
mov byte [edi + 0x28], al
cmp byte [edi + 0x28], 0
jne 0x53297b
mov eax, dword [ebp + 0xc]
push edi
push eax
push ebx
call fcn.00531d70
add esp, 0xc
mov dword [ebp + 0x18], eax
test eax, eax
je 0x532be6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x10a4]
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
sar esi, 2
imul esi, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
sar eax, 2
mov dword [ebp - 0x28], eax
movzx eax, byte [edi + 8]
push edx
sar ecx, 2
push eax
add esi, ecx
mov ecx, dword [ebp + 0xc]
add esi, dword [ebx + 0x10c8]
push edi
push ecx
push ebx
call fcn.0050bea0
add esp, 0x14
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x532de6
cmp dword [ebp - 0x28], eax
jle 0x532be6
mov eax, dword [ebp - 0x28]
lea edx, [eax - 1]
and edx, 0xfffffffe
add edx, 2
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x38]
mov eax, 0x101
movzx edx, ax
shr ecx, 1
mov eax, edx
shl edx, 0x10
or eax, edx
shr ecx, 1
mov edi, esi
rep stosd dword es:[edi], eax
adc ecx, ecx
add esi, dword [ebp - 0x34]
dec dword [ebp - 0x28]
rep stosw word es:[edi], ax
jne 0x5329e1
mov edi, dword [ebp + 0x10]
jmp 0x532be6
mov eax, dword [edi + 0x10]
push 0
lea esi, [edi + 0x30]
test eax, eax
jne 0x532a3c
mov eax, dword [ebp + 8]
push eax
push eax
push ebx
call fcn.00531bc0
add esp, 0x10
mov dword [ebp + 0x18], eax
test eax, eax
je 0x532be6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x532a6c
mov ecx, dword [ebp + 8]
mov eax, ecx
sar eax, 1
push eax
push ecx
push ebx
mov dword [ebp + 0x18], eax
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
push eax
lea esi, [edi + 0x54]
push ecx
jmp 0x532a21
cmp eax, 2
jne 0x532a9b
mov ecx, dword [ebp + 8]
mov eax, ecx
sar eax, 1
push ecx
push eax
push ebx
mov dword [ebp + 0x18], eax
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea esi, [edi + 0x54]
push edx
jmp 0x532a20
cmp eax, 4
jne 0x532ad2
mov ecx, dword [ebp + 8]
mov eax, ecx
sar eax, 2
push eax
push ecx
push ebx
mov dword [ebp + 0x18], eax
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [eax + eax*2]
push ecx
lea esi, [edi + 0x54]
push edx
jmp 0x532a21
cmp eax, 5
jne 0x532b09
mov ecx, dword [ebp + 8]
mov eax, ecx
sar eax, 2
mov dword [ebp + 0x18], eax
lea eax, [eax + eax*2]
push eax
push ecx
push ebx
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
push eax
push ecx
lea esi, [edi + 0x54]
push edx
jmp 0x532a21
cmp eax, 6
jne 0x532b40
mov ecx, dword [ebp + 8]
mov eax, ecx
sar eax, 2
push ecx
push eax
push ebx
mov dword [ebp + 0x18], eax
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x18]
lea ecx, [eax + eax*2]
lea esi, [edi + 0x54]
push ecx
jmp 0x532a21
cmp eax, 7
jne 0x532b77
mov ecx, dword [ebp + 8]
mov eax, ecx
sar eax, 2
push ecx
lea edx, [eax + eax*2]
push edx
push ebx
mov dword [ebp + 0x18], eax
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
mov ecx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
lea esi, [edi + 0x54]
push ecx
jmp 0x532a21
mov eax, dword [ebp + 8]
sar eax, 1
push eax
push eax
push ebx
mov dword [ebp + 0x18], eax
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
push eax
mov eax, dword [ebp + 0x18]
push eax
push eax
lea esi, [edi + 0x54]
push ebx
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
push eax
mov eax, dword [ebp + 0x18]
push eax
push eax
lea esi, [edi + 0x78]
push ebx
call fcn.00531bc0
add esp, 0x10
test eax, eax
jne 0x532de9
push eax
mov eax, dword [ebp + 0x18]
push eax
push eax
lea esi, [edi + 0x9c]
push ebx
call fcn.00531bc0
add esp, 0x10
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x532de6
cmp byte [edi + 0x28], 0
mov esi, dword [ebp - 8]
jne 0x532779
cmp dword [edi + 0xc], 1
je 0x532c15
cmp dword [edi + 0x10], 0
jne 0x532c05
cmp dword [edi + 0x30], 0
jne 0x532c15
lea eax, [esi + 0x30]
push eax
push esi
call fcn.0050ac40
add esp, 8
mov byte [edi + 0xb], al
cmp byte [edi + 0xb], 0
je 0x532779
cmp dword [edi + 0xc], 1
jne 0x532c37
movsx eax, byte [edi + 0xc0]
mov edx, dword [ebp - 0xc]
add eax, dword [edx + 0x5e8]
jmp 0x532c40
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5e4]
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x40]
push edx
push 0
push 0
push 0
push 0
mov byte [edi + 0xc1], al
movzx eax, byte [edi + 8]
push eax
mov eax, dword [ebp - 0x14]
push ecx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push edi
push ecx
push ebx
call fcn.00532310
add esp, 0x38
mov dword [ebp + 0x18], eax
test eax, eax
je 0x532779
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [eax + 4], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jne 0x532ca7
mov eax, dword [ebp - 4]
add dword [eax + 8], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x532cbc
mov eax, dword [ebp - 4]
add dword [eax + 0xc], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
jne 0x532de6
mov eax, dword [ebp - 4]
add dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x532cfe
cmp dword [edi + 0x10], 3
mov eax, dword [ebp - 4]
jne 0x532cf1
add dword [eax + 0x14], 4
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add dword [eax + 0x18], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jne 0x532d13
mov eax, dword [ebp - 4]
add dword [eax + 0x1c], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x532d28
mov eax, dword [ebp - 4]
add dword [eax + 0x20], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
jne 0x532de6
mov eax, dword [ebp - 4]
add dword [eax + 0x24], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
mov eax, dword [ebp + 8]
jne 0x532d9c
cmp eax, 8
jne 0x532d5d
mov eax, dword [ebp - 4]
add dword [eax + 0x28], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jne 0x532d72
mov eax, dword [ebp - 4]
add dword [eax + 0x2c], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x532d87
mov eax, dword [ebp - 4]
add dword [eax + 0x30], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
jne 0x532de6
mov eax, dword [ebp - 4]
add dword [eax + 0x34], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x532db1
mov eax, dword [ebp - 4]
add dword [eax + 0x38], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x10
jne 0x532dc6
mov eax, dword [ebp - 4]
add dword [eax + 0x3c], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x532ddb
mov eax, dword [ebp - 4]
add dword [eax + 0x40], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
jne 0x532de6
mov eax, dword [ebp - 4]
add dword [eax + 0x44], ecx
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret