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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1546
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x63ee20]
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.00508130
push eax
mov eax, dword [0x645474]
push eax
call fcn.00516670
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
call fcn.00510f20
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508130
sub eax, dword [ebp - 0x20]
cmp eax, 0xa
jle 0x5222ee
push 0
push 0x51d770
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.0051c6f0
mov dword [ebp - 0x1c], 0
jmp 0x522300
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508130
cmp dword [ebp - 0x1c], eax
jge 0x52239e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508170
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x522392
push 0xb0
call fcn.0044f881
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
je 0x52235c
mov ecx, dword [ebp - 0x74]
call fcn.00522810
mov dword [ebp - 0x7c], eax
jmp 0x522363
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.00513d50
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x35], 0
jmp 0x5222f7
mov dword [ebp - 0x1c], 0
jmp 0x5223b0
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x522653
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7dc
call fcn.00508170
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5223e6
mov ecx, dword [ebp - 0x18]
call fcn.00518450
movzx eax, al
test eax, eax
jne 0x5223e8
jmp 0x5223a7
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00508170
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x52245f
push 0xb0
call fcn.0044f881
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], 0
je 0x52242d
mov ecx, dword [ebp - 0x68]
call fcn.00522810
mov dword [ebp - 0x7c], eax
jmp 0x522434
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.00508390
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.0055d7b0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.005226b0
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00518430
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.00513db0
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.0050b590
cmp eax, 1
jne 0x5225df
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 0x522578
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1e8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c8
call fcn.00522700
movzx eax, al
test eax, eax
je 0x522578
mov dword [ebp - 0x80], 1
jmp 0x52257f
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.00508130
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.0051a070
jmp 0x5225f4
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.00522690
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522670
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.0051f5a0
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.0058fb90
add esp, 0xc
jmp 0x5223a7
mov ecx, dword [ebp - 0x10]
call fcn.00510f50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret