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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1536
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x65ee20]
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.00508180
push eax
mov eax, dword [0x6654f4]
push eax
call fcn.005188d0
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
call fcn.00510f50
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508180
sub eax, dword [ebp - 0x20]
cmp eax, 0xa
jle 0x5221de
push 0
push 0x51d6a0
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.0051c810
mov dword [ebp - 0x1c], 0
jmp 0x5221f0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508180
cmp dword [ebp - 0x1c], eax
jge 0x52228e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005081c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x522282
push 0xb0
call fcn.0044f931
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
je 0x52224c
mov ecx, dword [ebp - 0x74]
call fcn.00522700
mov dword [ebp - 0x7c], eax
jmp 0x522253
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.00513dd0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x35], 0
jmp 0x5221e7
mov dword [ebp - 0x1c], 0
jmp 0x5222a0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x522543
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7dc
call fcn.005081c0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5222d6
mov ecx, dword [ebp - 0x18]
call fcn.00518540
movzx eax, al
test eax, eax
jne 0x5222d8
jmp 0x522297
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.005081c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x52234f
push 0xb0
call fcn.0044f931
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], 0
je 0x52231d
mov ecx, dword [ebp - 0x68]
call fcn.00522700
mov dword [ebp - 0x7c], eax
jmp 0x522324
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.005083e0
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.0055cd80
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.005225a0
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00518500
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.00513e30
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.0050b5e0
cmp eax, 1
jne 0x5224cf
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 0x522468
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1e8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c8
call fcn.005225f0
movzx eax, al
test eax, eax
je 0x522468
mov dword [ebp - 0x80], 1
jmp 0x52246f
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.00508180
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.0051a190
jmp 0x5224e4
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.00522580
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522560
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.0051f4d0
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.0058fba0
add esp, 0xc
jmp 0x522297
mov ecx, dword [ebp - 0x10]
call fcn.00510f80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret