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

Disassembly:
push 0xffffffffffffffff
push 0x58b7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x40]
xor edi, edi
mov dword [esp + 0x40], edi
cmp dword [eax + 0x15c], edi
je 0x5230e6
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x10]
push edx
lea ecx, [esi + 0x78]
push eax
mov byte [esp + 0x48], 1
call 0x5e52cc
test eax, eax
je 0x522ec5
mov ecx, dword [esp + 0x10]
push ecx
call 0x5ce577
mov ebp, eax
add esp, 4
cmp ebp, edi
jl 0x5230d8
cmp ebp, dword [esi + 0x6c]
jge 0x5230d8
mov edx, dword [esi + 0x68]
lea edi, [ebp*8]
sub edi, ebp
lea ecx, [esp + 0x20]
shl edi, 6
add edx, edi
push edx
call 0x5e677a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call 0x5ce3ed
add esp, 8
test eax, eax
jne 0x522eb7
mov edx, dword [esi + 0x68]
mov ecx, dword [edx + edi + 0x38]
lea eax, [edx + edi]
mov edx, dword [0x5f9f88]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
push eax
push 0x5f0634
lea eax, [esp + 0x24]
push 0x5eaa2c
push eax
mov byte [esp + 0x50], 3
call 0x5e1eb4
add esp, 0xc
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call 0x5e6481
mov ecx, esi
call fcn.005226e0
mov ebx, eax
test ebx, ebx
je 0x522ea9
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x522df5
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x48]
push eax
call 0x5e5792
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esi + 0x78]
call 0x5e5354
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
sub eax, ebp
dec eax
lea edi, [edi + ecx]
je 0x522dc3
lea edx, [eax*8]
sub edx, eax
lea eax, [ebp + 1]
shl edx, 6
push edx
lea edx, [eax*8]
sub edx, eax
shl edx, 6
add edx, ecx
push edx
push edi
call 0x5ce9e0
add esp, 0xc
mov ecx, dword [esi + 0x6c]
dec ecx
mov dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x98]
cmp ebx, eax
jne 0x522dde
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0x1c]
push ebx
push 0
push 0x1101
push eax
call dword [0x5977c4]
jmp 0x522ea9
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x14]
add edx, edi
mov byte [esp + 0x40], 4
push edx
call 0x5e677a
push 0x5fe7d8
push 0x5f0634
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 5
call 0x5e17fc
lea ecx, [esp + 0x14]
call 0x5e1ec7
mov eax, dword [esp + 0x14]
push 0x5fe7d8
push eax
call 0x5ce3ed
add esp, 8
test eax, eax
jne 0x522e58
push 0x5f0640
lea ecx, [esp + 0x18]
call 0x5e6895
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x38]
push 0x5f0650
push eax
call 0x5e1eb4
mov ecx, dword [esp + 0x40]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push ebx
mov ecx, esi
call 0x5e3304
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call 0x5e670c
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 3
call 0x5e670c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call 0x5e670c
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x20]
mov eax, dword [esi + 0x6c]
xor ebp, ebp
cmp eax, edi
jle 0x5230d8
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x2c]
add edx, edi
push edx
call 0x5e677a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call 0x5ce3ed
add esp, 8
test eax, eax
je 0x522f18
lea ecx, [esp + 0x2c]
mov byte [esp + 0x40], 1
call 0x5e670c
mov eax, dword [esi + 0x6c]
inc ebp
add edi, 0x1c0
cmp ebp, eax
jl 0x522ed2
jmp 0x5230d8
mov edx, dword [esi + 0x68]
lea edi, [ebp*8]
sub edi, ebp
shl edi, 6
mov ecx, dword [edx + edi + 0x38]
lea eax, [edx + edi]
mov edx, dword [0x5f9f88]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
push eax
push 0x5f0634
lea eax, [esp + 0x30]
push 0x5eaa2c
push eax
mov byte [esp + 0x50], 7
call 0x5e1eb4
add esp, 0xc
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call 0x5e6481
mov ecx, esi
call fcn.005226e0
mov ebx, eax
test ebx, ebx
je 0x5230bc
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x523008
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x48]
push eax
call 0x5e5792
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esi + 0x78]
call 0x5e5354
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
sub eax, ebp
dec eax
lea edi, [ecx + edi]
je 0x522fd6
lea edx, [eax*8]
sub edx, eax
lea eax, [ebp + 1]
shl edx, 6
push edx
lea edx, [eax*8]
sub edx, eax
shl edx, 6
add edx, ecx
push edx
push edi
call 0x5ce9e0
add esp, 0xc
mov ecx, dword [esi + 0x6c]
dec ecx
mov dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x98]
cmp ebx, eax
jne 0x522ff1
mov dword [esi + 0x98], 0
mov eax, dword [esi + 0x1c]
push ebx
push 0
push 0x1101
push eax
call dword [0x5977c4]
jmp 0x5230bc
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x34], ecx
mov edx, dword [esi + 0x68]
lea ecx, [esp + 0x18]
add edx, edi
mov byte [esp + 0x40], 8
push edx
call 0x5e677a
push 0x5fe7d8
push 0x5f0634
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 9
call 0x5e17fc
lea ecx, [esp + 0x18]
call 0x5e1ec7
mov eax, dword [esp + 0x18]
push 0x5fe7d8
push eax
call 0x5ce3ed
add esp, 8
test eax, eax
jne 0x52306b
push 0x5f0640
lea ecx, [esp + 0x1c]
call 0x5e6895
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x3c]
push 0x5f0650
push eax
call 0x5e1eb4
mov ecx, dword [esp + 0x44]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
push ecx
push 1
push ebx
mov ecx, esi
call 0x5e3304
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 8
call 0x5e670c
lea ecx, [esp + 0x34]
mov byte [esp + 0x40], 7
call 0x5e670c
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 6
call 0x5e670c
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x2c]