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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1576
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x632e20]
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.00507eb0
push eax
mov eax, dword [0x639444]
push eax
call fcn.005185f0
add esp, 8
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x10]
call fcn.00510ca0
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00507eb0
sub eax, dword [ebp - 0x20]
cmp eax, 0xa
jle 0x52207e
push 0
push 0x51d540
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.0051c530
mov dword [ebp - 0x1c], 0
jmp 0x522090
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00507eb0
cmp dword [ebp - 0x1c], eax
jge 0x52212e
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00507ef0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x522122
push 0xb0
call fcn.0044f661
add esp, 4
mov dword [ebp - 0x74], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0
je 0x5220ec
mov ecx, dword [ebp - 0x74]
call fcn.005225a0
mov dword [ebp - 0x7c], eax
jmp 0x5220f3
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.00513af0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x35], 0
jmp 0x522087
mov dword [ebp - 0x1c], 0
jmp 0x522140
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jge 0x5223e3
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7dc
call fcn.00507ef0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x522176
mov ecx, dword [ebp - 0x18]
call fcn.00518260
movzx eax, al
test eax, eax
jne 0x522178
jmp 0x522137
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x834
call fcn.00507ef0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x5221ef
push 0xb0
call fcn.0044f661
add esp, 4
mov dword [ebp - 0x68], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], 0
je 0x5221bd
mov ecx, dword [ebp - 0x68]
call fcn.005225a0
mov dword [ebp - 0x7c], eax
jmp 0x5221c4
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.00508110
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.0055d800
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x50], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522440
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00518220
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.00513b50
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.0050b310
cmp eax, 1
jne 0x52236f
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 0x522308
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x1e8]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c8
call fcn.00522490
movzx eax, al
test eax, eax
je 0x522308
mov dword [ebp - 0x80], 1
jmp 0x52230f
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.00507eb0
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.00519eb0
jmp 0x522384
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.00522420
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x2c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.00522400
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x160]
call fcn.0051f370
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.0058fb60
add esp, 0xc
jmp 0x522137
mov ecx, dword [ebp - 0x10]
call fcn.00510cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret