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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x40], edi
mov eax, dword [esi + 0xc]
mov dword [esp + 0x20], eax
cmp dword [esi + 0x50], edi
jne 0x530861
call fcn.0052a920
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edx
cmp dword [esi + 0x24], edi
jne 0x530861
mov ecx, esi
call fcn.0052a740
mov dword [esi + 0x50], eax
cmp dword [esi + 0x24], edi
lea ebx, [esi + 0x24]
je 0x53086d
xor eax, eax
jmp 0x530875
mov eax, dword [esi + 0x50]
inc dword [eax]
mov eax, dword [esi + 0x50]
mov edx, eax
mov dword [esp + 0xc], eax
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.0052ed30
mov ecx, dword [esi + 0x50]
mov edx, eax
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x53089f
call fcn.00529f70
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x50], edi
test edx, edx
je 0x530e2d
mov eax, dword [esi]
push edx
lea edx, [esp + 0x64]
mov ecx, dword [eax + 0x4c]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x34], ecx
mov ecx, esi
mov dword [esp + 0x50], eax
call fcn.0052f780
add esp, 4
cmp dword [ebx], edi
mov edi, dword [esp + 0x20]
jne 0x5308de
push 0
xor edx, edx
mov ecx, edi
call fcn.005296a0
add esp, 4
mov dword [ebx], eax
cmp dword [ebx], 0
jne 0x530d04
nop word [eax + eax]
mov edi, dword [edi + 0x10]
test edi, edi
je 0x530d04
lea ebx, [edi + 0x28]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x530903
sub esi, ecx
mov edx, edi
mov ecx, dword [esp + 0x20]
push 0
call fcn.00528e20
lea eax, [esi + 1]
mov ecx, ebx
add eax, ebx
add esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [edi + 0x10]
sub eax, esi
lea edx, [ecx + 1]
sub eax, 0x29
mov dword [esp + 0x34], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x530936
mov esi, dword [esp + 0x10]
sub ecx, edx
push ebx
push ecx
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.0052f430
lea ebx, [esi + 0x24]
add esp, 8
cmp dword [ebx], 0
jne 0x530d04
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x70]
mov edx, dword [esp + 0x34]
lea eax, [esi + 1]
add eax, edi
add eax, edx
cmp dword [esp + 0x30], eax
jl 0x53099a
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x6c]
push edx
push ecx
add eax, edi
push eax
call fcn.00570750
add esp, 0xc
add edi, dword [esp + 0x34]
mov dword [esp + 0x70], edi
jmp 0x530ce5
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
nop
cmp ecx, edx
jge 0x530ce5
add ecx, dword [esp + 0x38]
lea edx, [esp + 0x58]
call fcn.00541950
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
movzx eax, al
add dword [esp + 0x14], eax
add dword [esp + 0x18], ecx
adc dword [esp + 0x44], edx
cmp byte [esp + 0x99], 0
je 0x530aa7
mov ecx, dword [esp + 0x6c]
mov eax, edi
mov esi, dword [esp + 0x44]
shr eax, 8
mov byte [ecx], al
lea edx, [ecx + edi]
mov al, byte [esp + 0x70]
mov byte [ecx + 1], al
mov eax, dword [esp + 0x18]
test esi, esi
ja 0x530a59
jb 0x530a22
cmp eax, 0x7f
ja 0x530a2d
and al, 0x7f
mov byte [edx], al
mov eax, 1
jmp 0x530a65
test esi, esi
ja 0x530a59
jb 0x530a3a
cmp eax, 0x3fff
ja 0x530a59
mov ecx, eax
mov eax, esi
shrd ecx, eax, 7
or cl, 0x80
mov byte [edx], cl
mov ecx, dword [esp + 0x18]
mov al, cl
and al, 0x7f
mov byte [edx + 1], al
mov eax, 2
jmp 0x530a69
push esi
push eax
mov ecx, edx
call fcn.0043fdc0
add esp, 8
mov ecx, dword [esp + 0x18]
push esi
add edi, eax
mov byte [esp + 0x9d], 0
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x68]
mov dword [esp + 0x78], edi
call fcn.0052f0e0
mov eax, dword [ebx]
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x530ce5
mov edi, dword [esp + 0x70]
xor edx, edx
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x7c]
jmp 0x530b09
mov ebx, dword [esp + 0x6c]
lea eax, [ebx + edi]
test edx, edx
ja 0x530aec
jb 0x530ab9
cmp ecx, 0x7f
ja 0x530ac5
and cl, 0x7f
mov byte [eax], cl
mov eax, 1
jmp 0x530af8
test edx, edx
ja 0x530aec
jb 0x530ad3
cmp ecx, 0x3fff
ja 0x530aec
mov eax, ecx
shrd eax, edx, 7
or al, 0x80
and cl, 0x7f
mov byte [ebx + edi], al
mov eax, 2
mov byte [ebx + edi + 1], cl
jmp 0x530af8
push edx
push ecx
mov ecx, eax
call fcn.0043fdc0
add esp, 8
add edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x70], edi
mov edx, dword [eax + 0x24]
mov dword [esp + 0x2c], edx
cmp dword [esp + 0x4c], 1
jne 0x530b73
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
cmp ecx, edx
jge 0x530b4c
mov eax, dword [esp + 0x38]
cmp byte [ecx + eax], 0
jne 0x530b4c
inc ecx
mov byte [ebx + edi], 0
inc edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x70], edi
cmp ecx, edx
jge 0x530b4c
cmp byte [ecx + eax], 0
jne 0x530b4c
mov byte [edi + ebx], 0
inc edi
inc ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x14], ecx
lea eax, [edi + esi]
cmp eax, dword [esp + 0x30]
jl 0x530cd1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x60]
call fcn.0052f2e0
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
jmp 0x530ccd
mov eax, dword [esp + 0x14]
mov ecx, 1
add eax, dword [esp + 0x38]
mov dword [esp + 0x48], eax
movzx eax, byte [eax]
mov dword [esp + 0x28], eax
test al, al
jns 0x530ba6
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x28]
call fcn.005418c0
mov edx, dword [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x28]
mov eax, eax
test eax, eax
jns 0x530baf
add eax, 1
sar eax, 1
add ecx, eax
lea eax, [edi + esi]
add eax, ecx
mov dword [esp + 0x3c], ecx
cmp eax, dword [esp + 0x30]
jg 0x530be2
push ecx
push dword [esp + 0x4c]
lea eax, [ebx + edi]
push eax
call fcn.00570750
mov eax, dword [esp + 0x48]
add esp, 0xc
add edi, eax
mov dword [esp + 0x70], edi
jmp 0x530cc3
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test edx, edx
jne 0x530cbf
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x48]
sub ebx, edi
sub ebx, esi
add eax, ecx
mov esi, dword [esp + 0x3c]
sub esi, ecx
mov dword [esp + 0x28], eax
cmp esi, ebx
jle 0x530c5f
lea edx, [esp + 0x50]
mov ecx, eax
call fcn.005418c0
mov esi, eax
cmp esi, ebx
jge 0x530c5b
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x50]
lea ecx, [esi + ecx]
call fcn.005418c0
mov ecx, eax
lea eax, [ecx + esi]
cmp eax, ebx
jg 0x530c5b
mov edi, dword [esp + 0x28]
nop word [eax + eax]
add esi, ecx
lea edx, [esp + 0x50]
lea ecx, [esi + edi]
call fcn.005418c0
mov ecx, eax
lea eax, [ecx + esi]
cmp eax, ebx
jle 0x530c40
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x28]
push esi
push eax
mov eax, dword [esp + 0x74]
add eax, edi
push eax
call fcn.00570750
mov ecx, dword [esp + 0x38]
add edi, esi
mov ebx, dword [esp + 0x1c]
add ecx, esi
mov esi, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x70], edi
mov dword [esp + 0x2c], ecx
lea eax, [edi + esi]
cmp eax, dword [esp + 0x30]
jl 0x530cab
lea edx, [esp + 0x60]
mov ecx, ebx
call fcn.0052f2e0
mov edi, dword [esp + 0x70]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x530cc3
cmp dword [ebx + 0x24], 0
je 0x530bf0
jmp 0x530cc3
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x7c]
add ebx, 0x24
cmp dword [ebx], 0
je 0x5309c0
cmp dword [ebx], 0
mov edi, dword [esp + 0x20]
jne 0x530cfa
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 4]
mov dword [edi + 0x10], eax
cmp dword [ebx], 0
mov esi, dword [esp + 0x10]
je 0x5308f0
mov ecx, dword [esp + 0x20]
call fcn.00528d60
lea eax, [esp + 0x40]
mov ecx, esi
push eax
lea edx, [esp + 0x64]
call fcn.0052f6a0
mov edi, dword [esp + 0x10]
add esp, 4
cmp dword [edi + 0x14], 0
jne 0x530d98
lea edx, [esp + 0x24]
mov ecx, ebx
call fcn.0052a070
cmp dword [ebx], 0
mov edi, dword [esp + 0x24]
mov dword [esp + 0xc], edi
jne 0x530dea
mov esi, dword [edi + 0x14]
call fcn.004e4f50
test eax, eax
jne 0x530d92
lea eax, [esi + esi*2]
mov ecx, edi
lea eax, [eax*4 + 0x34]
push 0
push eax
call fcn.0043b4b0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x530d92
lea eax, [esi + esi*2]
xorps xmm0, xmm0
movq qword [ecx + eax*4 + 0x18], xmm0
mov edi, ecx
mov dword [ecx + eax*4 + 0x20], 0
inc dword [ecx + 0x14]
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], edi
jmp 0x530d98
mov dword [ebx], 7
cmp dword [ebx], 0
jne 0x530dea
mov eax, dword [edi + 0x1c]
mov edi, dword [edi + 0x20]
inc eax
lea esi, [eax + eax*2]
shl esi, 2
call fcn.004e4f50
test eax, eax
jne 0x530de4
push eax
push esi
mov ecx, edi
call fcn.0043b4b0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x530de4
mov esi, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, dword [esi + 0x1c]
lea eax, [eax + eax*2]
movq qword [ecx + eax*4], xmm0
mov dword [ecx + eax*4 + 8], 0
mov dword [esi + 0x20], ecx
jmp 0x530dee
mov dword [ebx], 7
mov esi, dword [esp + 0xc]
cmp dword [ebx], 0
mov edi, dword [esp + 0x40]
jne 0x530e1c
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
lea ecx, [edx + edx*2]
lea ecx, [eax + ecx*4]
lea eax, [edx + 1]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], 1
mov dword [ecx + 8], edi
inc dword [esi + 0x10]
push esi
mov esi, dword [esp + 0x14]
xor edx, edx
mov ecx, esi
call fcn.0052ada0
add esp, 4
cmp dword [ebx], 0
mov edx, dword [esp + 0xc]
jne 0x530ed2
mov eax, dword [esi]
cmp dword [eax + 0x50], 0
jle 0x530ed2
test edx, edx
je 0x530ed2
mov esi, dword [edx + 8]
mov eax, edi
mov ebx, dword [edx + 0xc]
cdq
mov ecx, eax
mov dword [esp + 0x40], esi
mov eax, dword [esp + 0x10]
add ecx, esi
mov esi, edx
mov dword [esp + 0x1c], ebx
adc esi, ebx
mov dword [esp + 0x4c], ecx
mov eax, dword [eax + 8]
cdq
mov ebx, eax
mov edi, edx
mov eax, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push dword [ecx + 0x50]
push edi
push ebx
push esi
push dword [esp + 0x5c]
call fcn.0056f600
push edi
push ebx
push dword [esp + 0x28]
mov esi, eax
push dword [esp + 0x50]
call fcn.0056f600
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x28]
sub esi, eax
mov eax, dword [esp + 0x14]
imul esi, dword [ecx + 0x14]
imul esi, dword [eax + 8]
push esi
mov esi, eax
mov ecx, esi
call fcn.00530730
mov edx, dword [esp + 0x2c]
add esp, 8
mov dword [esp + 0xc], edx
mov eax, dword [esi]
xor esi, esi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], edx
mov ebx, dword [eax + 0x54]
cmp dword [ecx + 0x24], esi
jne 0x530f23
xor edi, edi
cmp dword [edi + edx + 0x1c], ebx
jl 0x530f23
push 0
push esi
lea edx, [esp + 0x24]
call fcn.0052fe70
mov eax, dword [esp + 0x24]
inc esi
mov ecx, dword [esp + 0x18]
mov edx, esi
push eax
mov dword [esp + 0x18], eax
call fcn.0052ada0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0xc]
add edi, 0xc
cmp dword [ecx + 0x24], 0
je 0x530ee8
call fcn.0052aa00
mov ecx, dword [esp + 0xc]
call fcn.00529f70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret