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

Disassembly:
push 0xffffffffffffffff
push 0x661b4c
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x705e7c]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x705e7c]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea esi, [ecx + 0x44]
lea eax, [esp + 0x2b0]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.004dda60
mov edi, dword [esi + 0x18]
mov esi, dword [esi]
mov ebp, dword [esp + 0x24]
xor ebx, ebx
cmp esi, ebx
je 0x522969
cmp esi, ebp
je 0x52296e
call fcn.006121a6
mov esi, dword [esp + 0x28]
cmp edi, esi
je 0x522cd6
cmp ebp, ebx
jne 0x5229ae
call fcn.006121a6
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x52298f
call fcn.006121a6
add esi, 0x10
mov dword [esp + 0x1c], esi
cmp dword [esi + 0x14], ebx
je 0x522cd6
mov edx, dword [esi + 0x18]
lea eax, [esi + 4]
cmp edx, 0x10
jb 0x5229b3
mov ecx, dword [eax]
jmp 0x5229b5
mov eax, dword [ebp]
jmp 0x522985
mov ecx, eax
cmp byte [ecx], 0x23
jne 0x522a5f
cmp edx, 0x10
jb 0x5229c5
mov eax, dword [eax]
lea edi, [eax + 1]
push edi
push 0x688b68
lea edx, [esp + 0xa4]
push 0x100
push edx
call fcn.00613fac
push edi
push 0x688b58
lea eax, [esp + 0x1b4]
push 0x100
push eax
call fcn.00613fac
add esp, 0x20
call fcn.005283c0
mov ebx, dword [esp + 0x2b0]
mov esi, eax
push ebx
mov ecx, esi
call fcn.0055a540
lea ecx, [esp + 0x9c]
push ecx
mov ecx, esi
call fcn.00528480
test eax, eax
jne 0x522a45
lea edx, [esp + 0x9c]
push edx
push ebx
push 0x688b1c
call fcn.00584ec0
push esi
call fcn.00527f30
add esp, 0x10
jmp 0x522cd6
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x19c]
push eax
push edi
push esi
call fcn.00520a80
mov eax, esi
jmp 0x522cd8
lea ecx, [esp + 0x30]
call fcn.00450c40
mov edi, dword [esp + 0x2b0]
lea ecx, [esp + 0x30]
push ecx
push edi
mov dword [esp + 0x2b0], ebx
call fcn.005200f0
add esp, 8
call fcn.005283c0
mov ebp, eax
push edi
mov ecx, ebp
mov dword [esp + 0x30], ebp
call fcn.0055a540
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], ebx
je 0x522cb9
mov edi, dword [esp + 0x20]
add edi, 0x24
mov dword [esp + 0x18], ebx
jmp 0x522ad4
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], eax
jb 0x522adf
call fcn.006121a6
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
add eax, edx
push ebx
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.00418140
push esi
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
mov byte [esp + 0x2b0], 1
call fcn.004956f0
mov eax, dword [edi]
mov esi, dword [edi + 0x18]
cmp eax, ebx
je 0x522b30
cmp eax, dword [esp + 0x24]
je 0x522b35
call fcn.006121a6
mov ebp, dword [esp + 0x28]
cmp esi, ebp
jne 0x522b47
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push edx
jmp 0x522b6b
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x522d02
call fcn.006121a6
xor eax, eax
cmp ebp, dword [eax + 0x18]
jne 0x522b64
call fcn.006121a6
push 0xffffffffffffffff
lea eax, [ebp + 0x28]
push ebx
push eax
lea ecx, [esp + 0x70]
call fcn.004178a0
push 1
push 0x6b2040
lea ecx, [esp + 0x6c]
call fcn.004179a0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x6c]
mov esi, 0xf
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.00418140
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x2b4], 2
call fcn.004178a0
push 4
push 0x688b14
lea ecx, [esp + 0x50]
call fcn.004179a0
cmp dword [esp + 0x60], 0x10
mov eax, dword [esp + 0x4c]
jae 0x522bde
lea eax, [esp + 0x4c]
mov ebp, dword [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.00528480
test eax, eax
jne 0x522d7c
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax - 1]
mov eax, dword [esp + 0x4c]
cmp esi, ecx
je 0x522d09
mov ebp, 0x10
cmp dword [esp + 0x60], ebp
jae 0x522c2e
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x2b0]
push eax
push edx
push 0x688ab8
call fcn.00584ec0
add esp, 0xc
cmp dword [esp + 0x60], ebp
jb 0x522c57
mov eax, dword [esp + 0x4c]
push eax
call fcn.00611358
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov byte [esp + 0x2a8], bl
cmp dword [esp + 0x7c], ebp
jb 0x522c81
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00611358
add esp, 4
mov ecx, dword [esp + 0x40]
sub ecx, dword [esp + 0x3c]
add dword [esp + 0x18], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x14], esi
cmp esi, eax
jb 0x522ad0
mov edi, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2c]
push edi
push 0x688a74
call fcn.00584ec0
push ebp
call fcn.00527f30
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00450db0
xor eax, eax
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.006117ae
add esp, 0x298
ret 4
mov eax, dword [eax]
jmp 0x522b5a
mov esi, 0x10
cmp dword [esp + 0x60], esi
jae 0x522d18
lea eax, [esp + 0x4c]
mov edx, dword [esp + 0x2b0]
push eax
push edx
push 0x688a30
call fcn.00584ec0
push ebp
call fcn.00527f30
add esp, 0x10
cmp dword [esp + 0x60], esi
jb 0x522d47
mov eax, dword [esp + 0x4c]
push eax
call fcn.00611358
add esp, 4
mov edi, 0xf
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], esi
jb 0x522d6b
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00611358
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jmp 0x522ccd
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x6c]
push edx
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov byte [esp + 0x90], bl
call fcn.00418140
mov ecx, ebp
mov byte [esp + 0x2a8], 3
call fcn.005234d0
mov esi, eax
mov ecx, esi
lea edx, [ecx + 1]
jmp 0x522dc0
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x522dc0
sub ecx, edx
push ecx
push esi
lea ecx, [esp + 0x88]
call fcn.004179a0
mov ecx, dword [esp + 0x84]
mov esi, 0x10
cmp dword [esp + 0x98], esi
jae 0x522df3
lea ecx, [esp + 0x84]
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x7c], esi
jae 0x522e01
lea eax, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ebp
call fcn.00520a80
cmp dword [esp + 0x98], esi
jb 0x522e26
mov eax, dword [esp + 0x84]
push eax
call fcn.00611358
add esp, 4
mov edi, 0xf
mov dword [esp + 0x98], edi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0x60], esi
jb 0x522e53
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00611358
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
cmp dword [esp + 0x7c], esi
jb 0x522e72
mov edx, dword [esp + 0x68]
push edx
call fcn.00611358
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
call fcn.00450db0
mov eax, ebp
jmp 0x522cd8