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

Disassembly:
sub esp, 0x5e4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5f8]
push edi
xor edi, edi
mov ebp, ecx
cmp esi, edi
mov dword [esp + 0x30], ebp
jle 0x5362a5
cmp dword [ebp + 0x6db0], edi
je 0x5362a5
mov eax, dword [0x6d6790]
mov ecx, dword [0xcf5100]
cmp ecx, eax
ja 0x5362a5
mov ebx, dword [esp + 0x5f8]
add eax, 0x3e8
cmp ebx, edi
mov dword [0xcf5100], eax
jbe 0x5362a5
lea eax, [esp + 0x14]
mov ecx, ebp
push eax
mov dword [esp + 0x18], ebx
call fcn.00487810
mov ecx, dword [ebp + 4]
mov dword [esp + 0x1c], eax
cmp eax, ecx
je 0x535b93
mov edx, dword [esp + 0x14]
cmp edx, dword [eax + 0xc]
jl 0x535b93
lea eax, [esp + 0x1c]
jmp 0x535b9b
mov dword [esp + 0x18], ecx
lea eax, [esp + 0x18]
mov eax, dword [eax]
cmp eax, ecx
je 0x535bed
mov ecx, dword [eax + 0x80]
test ch, 0x10
je 0x535bed
mov eax, dword [0xa4f274]
push edi
push edi
cmp eax, edi
push edi
push edi
je 0x535bd3
push 0x66b854
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret 8
push 0x66b838
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret 8
mov al, byte [0xced250]
mov dword [esp + 0x44], esi
test al, 1
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
jne 0x535c1a
mov dl, al
push 0x5362c0
or dl, 1
mov byte [0xced250], dl
call fcn.006132e0
add esp, 4
mov dword [esp + 0x14], edi
mov ecx, 0x1c2
xor eax, eax
mov edi, 0xced278
rep stosd dword es:[edi], eax
push ebx
call fcn.00535150
add esp, 4
cmp eax, 1
jle 0x535cc2
xor esi, esi
lea eax, [ebp + 0x5e10]
mov edx, 0x32
xor ecx, ecx
mov cx, word [eax + 6]
cmp ecx, ebx
jne 0x535c68
mov ecx, dword [eax]
cmp ecx, 0xc8
jae 0x535c68
mov edi, 0xc8
sub edi, ecx
add esi, edi
add eax, 0x50
dec edx
jne 0x535c4b
mov ecx, ebp
call fcn.00536d50
mov ecx, 0x32
sub ecx, eax
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x5fc]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esi + edx*2]
cmp ecx, eax
jle 0x535d19
mov eax, dword [0xa4f274]
push 0
push 0
push 0
test eax, eax
push 0
je 0x535cff
push 0x66b814
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret 8
mov ecx, ebp
call fcn.00536d50
mov ecx, 0x32
sub ecx, eax
cmp esi, ecx
jle 0x535d19
mov eax, dword [0xa4f274]
push 0
push 0
push 0
test eax, eax
push 0
je 0x535cff
push 0x66b814
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret 8
push 0x66b7f0
call fcn.004cbc90
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret 8
xor ecx, ecx
mov dword [esp + 0x1c], ecx
cmp cx, 0x96
jae 0x536203
mov esi, ecx
mov eax, 0x66666667
and esi, 0xffff
mov ebx, 0xa
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, esi
lea edi, [edx + edx*4]
cdq
idiv ebx
lea eax, [edx + edi*2]
mov edx, eax
shl edx, 4
add edx, eax
mov eax, dword [esp + 0x5f8]
lea ebx, [ebp + edx*8]
mov edx, dword [ebp + edx*8 + 0xe0]
cmp edx, eax
jne 0x53614f
mov eax, dword [ebx + 0xe4]
mov edi, dword [esp + 0x5fc]
cmp edi, eax
jl 0x535d87
mov edi, eax
push ecx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x34], 0
call fcn.005367e0
test eax, eax
je 0x5361bd
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2]
mov edx, dword [ecx*4 + 0xced278]
lea ecx, [ecx*4 + 0xced278]
test edx, edx
je 0x535dd9
mov edx, dword [ecx + 0xc]
add ecx, 0xc
inc eax
test edx, edx
jne 0x535dca
mov dword [esp + 0x14], eax
mov ecx, dword [0xd0af88]
lea eax, [eax + eax*2]
shl eax, 2
and edi, 0xffff
mov dword [eax + 0xced280], ecx
mov ecx, dword [esp + 0x5f8]
and ecx, 0xffff
mov edx, edi
shl ecx, 0x10
or edx, ecx
mov dword [eax + 0xced278], edx
mov edx, dword [esp + 0x28]
cmp dx, 0xffff
jne 0x535e27
shl esi, 0x10
or esi, 0xffff
mov dword [eax + 0xced27c], esi
jmp 0x535e3e
add edx, 0x190
and edx, 0xffff
shl esi, 0x10
or edx, esi
mov dword [eax + 0xced27c], edx
mov edx, dword [0xcea2c8]
test edx, edx
jne 0x536168
mov edx, dword [esp + 0x10]
test dx, dx
jbe 0x535e8c
mov esi, dword [esp + 0x18]
mov edi, esi
sub edi, edx
and edx, 0xffff
and edi, 0xffff
or edi, ecx
mov ecx, ebp
mov dword [eax + 0xced278], edi
mov dword [ebx + 0xe4], edx
call fcn.00536d50
cmp eax, 0x32
je 0x536174
jmp 0x53613c
mov edx, dword [esp + 0x5fc]
mov eax, dword [ebx + 0xe4]
sub edx, edi
cmp edi, eax
mov dword [esp + 0x5fc], edx
jl 0x536134
mov ecx, dword [esp + 0x5f8]
xor eax, eax
mov dword [esp + 0xda], eax
mov dword [esp + 0x3f4], ecx
mov dword [esp + 0xde], eax
mov ecx, 0x4c
mov dword [esp + 0xe2], eax
lea esi, [esp + 0x60]
lea edi, [esp + 0x3f8]
mov byte [esp + 0xe6], al
lea edx, [esp + 0x3f4]
lea eax, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x28], 0
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x78]
test ecx, ecx
mov dword [esp + 0x3c], edx
jle 0x53613c
add ebx, 0x10c
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x5f8]
xor eax, eax
mov dword [esp + 0x20a], eax
mov dword [esp + 0x2c0], ecx
mov dword [esp + 0x20e], eax
mov ecx, 0x4c
mov dword [esp + 0x212], eax
lea esi, [esp + 0x190]
lea edi, [esp + 0x2c4]
mov byte [esp + 0x216], al
lea edx, [esp + 0x2c0]
lea eax, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x34], 0
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [eax + 0x74]
test ecx, ecx
mov dword [esp + 0x3c], edx
jle 0x5360b3
lea eax, [ebx + 4]
mov esi, ebx
mov dword [esp + 0x24], eax
lea edx, [ebx - 0x20]
lea ecx, [ebx - 0x24]
lea eax, [ebx - 0x2c]
lea ebp, [ebx - 0x18]
add ebx, 0xffffffd8
jmp 0x535fc1
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
mov dword [ebx], 0
mov dword [ebp], 0
mov dword [eax], 0
mov dword [ecx], 0xffffffff
mov dword [edx], 0xffffffff
mov dword [esi], 0
add ecx, 0x88
mov dword [edi], 0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ecx
xor ecx, ecx
inc edi
mov dword [esp + 0x20a], ecx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20e], ecx
add edx, 0x88
add esi, 0x88
add edi, 0x88
mov dword [esp + 0x212], ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x5f8]
mov dword [esp + 0x48], esi
mov dword [esp + 0x24], edi
mov byte [esp + 0x216], cl
add eax, 0x88
mov ecx, 0x4c
lea esi, [esp + 0x190]
lea edi, [esp + 0x2c4]
mov dword [esp + 0x2c0], edx
mov dword [esp + 0x40], eax
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x2c0]
lea ecx, [esp + 0x58]
push eax
push ecx
mov ecx, dword [esp + 0x38]
add ebx, 0x88
add ebp, 0x88
call fcn.00474ae0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x74]
cmp edx, ecx
jl 0x535fb1
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
xor eax, eax
inc ecx
mov dword [esp + 0xda], eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x5f8]
mov dword [esp + 0xde], eax
mov dword [esp + 0x3f4], ecx
mov dword [esp + 0xe2], eax
mov ecx, 0x4c
lea esi, [esp + 0x60]
lea edi, [esp + 0x3f8]
mov byte [esp + 0xe6], al
lea edx, [esp + 0x3f4]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x50]
add ebx, 0x550
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.00474ae0
mov ecx, eax
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x78]
cmp ecx, edx
jl 0x535f24
jmp 0x53613c
sub eax, edi
mov dword [ebx + 0xe4], eax
mov eax, dword [esp + 0x5fc]
test eax, eax
jle 0x536203
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5fc]
inc ecx
test eax, eax
mov dword [esp + 0x1c], ecx
jg 0x535d1f
jmp 0x536203
mov ecx, ebp
call fcn.0052cad0
jmp 0x536296
mov eax, dword [0xa4f274]
push 0
push 0
push 0
test eax, eax
push 0
je 0x53618c
push 0x66b7d4
jmp 0x536191
push 0x66b7b8
call fcn.004cbc90
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x610]
and esi, 0xffff
and edx, 0xffff
sub edx, esi
add esp, 0x14
add eax, edx
mov dword [esp + 0x5fc], eax
jmp 0x536203
mov eax, dword [0xa4f274]
push 0
push 0
push 0
test eax, eax
push 0
je 0x5361d5
push 0x66b7d4
jmp 0x5361da
push 0x66b7b8
call fcn.004cbc90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x610]
and edi, 0xffff
and eax, 0xffff
sub eax, edi
add esp, 0x14
add ecx, eax
mov dword [esp + 0x5fc], ecx
mov edi, dword [esp + 0x5fc]
mov esi, dword [esp + 0x44]
cmp edi, esi
je 0x536296
mov ecx, ebp
call fcn.0052d360
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax*2 + 6]
shl ecx, 2
push ecx
push 0xced278
push 0x484
call fcn.004ac410
mov eax, dword [0xa4f274]
add esp, 0xc
test eax, eax
je 0x536256
sub esi, edi
lea edx, [esp + 0x3f4]
push esi
push 0x66b798
push edx
jmp 0x536266
sub esi, edi
lea eax, [esp + 0x3f4]
push esi
push 0x66b778
push eax
call fcn.006133d6
lea edi, [esp + 0x400]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
push 0
push 0
dec ecx
push 0
push ecx
lea ecx, [esp + 0x404]
push ecx
call fcn.004cbc90
add esp, 0x14
mov ecx, 0x22
xor eax, eax
lea edi, [ebp + 0x6db4]
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5e4
ret 8