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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b15a6
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x6d2e20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x7dc
call fcn.00508670
push eax
mov eax, dword [0x6d96c4]
push eax
call fcn.00516b90
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
call fcn.00511440
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508670
sub eax, dword [ebp - 0x20]
cmp eax, 0xa
jle 0x52259e
push 0
push 0x51da20
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.0051cc10
mov dword [ebp - 0x1c], 0
jmp 0x5225b0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508670
cmp dword [ebp - 0x1c], eax
jge 0x52264e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005086b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x522642
push 0xb0
call fcn.0044fdc1
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
je 0x52260c
mov ecx, dword [ebp - 0x74]
call fcn.00522ac0
mov dword [ebp - 0x7c], eax
jmp 0x522613
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00514270
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x35], 0
jmp 0x5225a7
mov dword [ebp - 0x1c], 0
jmp 0x522660
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x522903
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7dc
call fcn.005086b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x522696
mov ecx, dword [ebp - 0x18]
call fcn.00518970
movzx eax, al
test eax, eax
jne 0x522698
jmp 0x522657
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005086b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x52270f
push 0xb0
call fcn.0044fdc1
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], 0
je 0x5226dd
mov ecx, dword [ebp - 0x68]
call fcn.00522ac0
mov dword [ebp - 0x7c], eax
jmp 0x5226e4
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005088d0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x35], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 0xd0]
mov byte [eax + 0x37], dl
mov ecx, dword [ebp - 0x18]
call fcn.0055cf90
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522960
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00518950
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14c]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x148]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x134]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x130]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x48]
call eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.005142d0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x108]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x18]
call fcn.0050bad0
cmp eax, 1
jne 0x52288f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x7c]
mov eax, dword [ecx + 0x58]
or eax, dword [edx + 0x5c]
je 0x522828
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1e8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c8
call fcn.005229b0
movzx eax, al
test eax, eax
je 0x522828
mov dword [ebp - 0x80], 1
jmp 0x52282f
mov dword [ebp - 0x80], 0
mov ecx, dword [ebp - 0x14]
mov dl, byte [ebp - 0x80]
mov byte [ecx + 0x36], dl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 0x1da]
mov byte [eax + 0x38], dl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + 0x1d9]
mov byte [eax + 0x39], dl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xfc]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x78
call fcn.00508670
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], eax
mov eax, dword [ebp - 0x18]
add eax, 0x1c8
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0xa0
call fcn.0051a590
jmp 0x5228a4
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x36], 1
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x38], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x39], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522940
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522920
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.0051f850
mov ecx, dword [ebp - 0x14]
mov byte [ecx + 0x3a], al
push 0x14
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x158]
add ecx, 0x38
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0x3c
push edx
call fcn.0058fbd0
add esp, 0xc
jmp 0x522657
mov ecx, dword [ebp - 0x10]
call fcn.00511470
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret