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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1686
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x6aae20]
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.00508370
push eax
mov eax, dword [0x6b1624]
push eax
call fcn.00518ac0
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
call fcn.00511140
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508370
sub eax, dword [ebp - 0x20]
cmp eax, 0xa
jle 0x52236e
push 0
push 0x51d830
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.0051ca00
mov dword [ebp - 0x1c], 0
jmp 0x522380
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508370
cmp dword [ebp - 0x1c], eax
jge 0x52241e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005083b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x522412
push 0xb0
call fcn.0044fb21
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
je 0x5223dc
mov ecx, dword [ebp - 0x74]
call fcn.00522890
mov dword [ebp - 0x7c], eax
jmp 0x5223e3
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.00513fc0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x35], 0
jmp 0x522377
mov dword [ebp - 0x1c], 0
jmp 0x522430
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x5226d3
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7dc
call fcn.005083b0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x522466
mov ecx, dword [ebp - 0x18]
call fcn.00518730
movzx eax, al
test eax, eax
jne 0x522468
jmp 0x522427
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005083b0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5224df
push 0xb0
call fcn.0044fb21
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], 0
je 0x5224ad
mov ecx, dword [ebp - 0x68]
call fcn.00522890
mov dword [ebp - 0x7c], eax
jmp 0x5224b4
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.005085d0
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.0055d0e0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522730
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.005186f0
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.00514020
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.0050b7d0
cmp eax, 1
jne 0x52265f
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 0x5225f8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1e8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c8
call fcn.00522780
movzx eax, al
test eax, eax
je 0x5225f8
mov dword [ebp - 0x80], 1
jmp 0x5225ff
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.00508370
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.0051a380
jmp 0x522674
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.00522710
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.005226f0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.0051f660
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.0058fc00
add esp, 0xc
jmp 0x522427
mov ecx, dword [ebp - 0x10]
call fcn.00511170
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret