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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5530fb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5973cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1c], edi
xor esi, esi
push 0x94
mov dword [edi + 4], esi
call fcn.00506654
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x53556b
push edi
mov ecx, eax
call fcn.00532b20
mov esi, eax
mov dword [ebp - 0x18], eax
jmp 0x53556e
mov dword [ebp - 0x18], esi
mov ebx, dword [ebp + 8]
mov ax, word [ebx + 0xa]
mov word [esi + 0xa], ax
mov cx, word [ebx + 0xe]
mov word [esi + 0xe], cx
mov dx, word [ebx + 0xc]
mov word [esi + 0xc], dx
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x5c], eax
mov ecx, dword [ebx + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [ebx + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [ebx + 0x64]
lea ecx, [ebx + 0x70]
push ecx
lea ecx, [esi + 0x70]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 1
mov dword [esi + 0x64], eax
call fcn.00531fd0
lea edx, [ebx + 0x80]
push edx
lea ecx, [esi + 0x80]
call fcn.00531fd0
lea eax, [ebx + 0x2c]
lea ecx, [esi + 0x2c]
push eax
call fcn.00532d20
lea edx, [ebx + 0x44]
lea ecx, [esi + 0x44]
push edx
call fcn.00532d20
lea ecx, [esi + 0x44]
call fcn.0053b740
mov al, byte [ebx + 0x90]
mov byte [esi + 0x90], al
mov cl, byte [ebx + 0x62]
push 0
mov byte [esi + 0x62], cl
push 0
mov ecx, esi
call fcn.00531910
push 0
mov ecx, esi
call fcn.00530da0
mov ecx, dword [edi + 0x24]
cmp byte [ecx + 0x14], 0
je 0x53563d
mov eax, dword [edi + 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x28]
add eax, dword [ecx + 0x10]
mov dword [ebp + 8], edx
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [edx + 0x18]
push 0
push eax
call edx
mov eax, dword [edi + 0x24]
mov byte [eax + 0x14], 0
jmp 0x535645
mov ecx, dword [edi + 0x14]
call fcn.005379d0
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
sar ecx, 2
cmp ax, cx
jae 0x535667
mov edx, 0xffff
mov byte [ebp + 0xb], 1
cmp ax, dx
jne 0x53566b
mov byte [ebp + 0xb], 0
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp + 0x10]
shr ecx, 4
and cl, 1
movzx edx, cl
push edx
push eax
mov ecx, esi
call fcn.00532670
cmp byte [ebp + 0x14], 0
je 0x53569e
mov ecx, dword [ebx + 0x10]
mov dword [esi + 0x10], ecx
mov edx, dword [ebx + 0x14]
mov dword [esi + 0x14], edx
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
cmp byte [ebp + 0xb], 0
je 0x53574a
mov ebx, 0xffff
cmp dword [esi + 0x88], ebx
jg 0x5356cb
cmp dword [esi + 0x78], ebx
jg 0x5356cb
lea ecx, [esi + 0x2c]
call fcn.0053b6f0
cmp eax, ebx
setle al
test al, al
jne 0x5356d7
push 0xd3
mov ecx, edi
call fcn.005345e0
mov ebx, dword [edi + 0x1c]
mov ecx, dword [ebx + 0x10]
sub ecx, dword [ebx + 0xc]
movzx eax, word [ebp + 0xc]
sar ecx, 2
cmp eax, ecx
jb 0x5356f0
call fcn.005091b7
movzx eax, word [ebp + 0xc]
mov edx, dword [ebx + 0xc]
mov ebx, dword [edx + eax*4]
mov eax, dword [ebx + 0x28]
mov ecx, dword [edi + 0x14]
push 0
push 0
push eax
call fcn.00539540
mov ecx, dword [ebp + 0xc]
push 0
push ecx
push ebx
mov ecx, edi
call fcn.005341c0
movzx eax, word [ebp + 0xc]
mov ebx, dword [edi + 0x1c]
push eax
lea edx, [ebp - 0x24]
push edx
mov ecx, ebx
call fcn.00533e10
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push edx
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
call fcn.00531a80
movzx ebx, word [ebp + 0xc]
mov dword [edi + 4], esi
jmp 0x535784
mov ebx, dword [edi + 0x1c]
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.00534a40
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
sar eax, 2
test eax, eax
jne 0x535770
push eax
push 0xdf
call fcn.0052d5c0
dec eax
movzx ebx, ax
mov eax, dword [edi + 0x14]
mov dword [edi + 4], esi
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [edi + 0x24]
cmp byte [ecx + 0x25], 0
mov dword [ebp - 4], 0xffffffff
je 0x53579d
push ebx
push esi
mov ecx, edi
call fcn.00534cc0
mov edx, dword [edi + 0x24]
mov word [edx + 0x26], bx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10