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

Disassembly:
push 0xffffffffffffffff
push 0x690a1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb0
push ebx
mov ebx, dword [esp + 0xc4]
push ebp
mov ebp, dword [esp + 0xcc]
push esi
mov esi, ecx
mov edx, dword [ebp]
push edi
add edx, 2
mov dword [esp + 0x28], esi
mov dword [ebp], edx
mov ecx, dword [ebx + 4]
mov eax, edx
cmp eax, ecx
jle 0x522b79
xor eax, eax
jmp 0x522b81
mov ecx, dword [ebx + 8]
mov ax, word [ecx + eax - 2]
movsx edi, ax
cmp edi, 1
je 0x522e2b
mov dl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], dl
call fcn.004031c0
lea eax, [edi + 4]
mov ebx, 3
cmp eax, ebx
mov dword [esp + 0xc8], 0
ja case.default.0x522bbb
jmp dword [eax*4 + 0x522fd8]
lea eax, [esp + 0x18]
push eax
push 0x27e2
call fcn.00615080
mov cl, byte [esp + 0x1b]
add esp, 8
mov byte [esp + 0x40], cl
lea ecx, [esp + 0x40]
push 0
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6dfe28
lea ecx, [esp + 0x48]
call fcn.004083a0
push 0
push 0
lea edx, [esp + 0x48]
push 0
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x90]
push eax
push ecx
mov byte [esp + 0xe0], 1
call fcn.00646ba0
add esp, 0x18
push 1
lea ecx, [esp + 0x84]
mov byte [esp + 0xcc], 1
call fcn.004031c0
mov byte [esp + 0xc8], 0
push 1
lea ecx, [esp + 0x44]
jmp 0x522e0b
lea edx, [esp + 0x18]
push edx
push 0x27e3
call fcn.00615080
mov al, byte [esp + 0x1b]
add esp, 8
lea ecx, [esp + 0x60]
mov byte [esp + 0x60], al
push 0
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6dfe28
lea ecx, [esp + 0x68]
call fcn.004083a0
push 0
push 0
lea ecx, [esp + 0x68]
push 0
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0xb0]
push edx
push eax
mov byte [esp + 0xe0], bl
call fcn.00646ba0
add esp, 0x18
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0xcc], bl
call fcn.004031c0
mov byte [esp + 0xc8], 0
push 1
lea ecx, [esp + 0x64]
jmp 0x522e0b
lea ecx, [esp + 0x18]
push ecx
push 0x27e4
call fcn.00615080
mov dl, byte [esp + 0x1b]
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x50], dl
push 0
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6dfe28
lea ecx, [esp + 0x58]
call fcn.004083a0
push 0
push 0
lea eax, [esp + 0x58]
push 0
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0xa0]
mov bl, 5
push ecx
push edx
mov byte [esp + 0xe0], bl
call fcn.00646ba0
add esp, 0x18
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0xcc], bl
call fcn.004031c0
mov byte [esp + 0xc8], 0
push 1
lea ecx, [esp + 0x54]
jmp 0x522e0b
lea eax, [esp + 0x18]
push eax
push 0x27e5
call fcn.00615080
mov cl, byte [esp + 0x1b]
add esp, 8
mov byte [esp + 0x70], cl
lea ecx, [esp + 0x70]
push 0
call fcn.004031c0
mov edi, 0x6dfe28
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6dfe28
lea ecx, [esp + 0x78]
call fcn.004083a0
push 0
push 0
lea edx, [esp + 0x78]
push 0
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0xc0]
mov bl, 7
push eax
push ecx
mov byte [esp + 0xe0], bl
call fcn.00646ba0
add esp, 0x18
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0xcc], bl
call fcn.004031c0
mov byte [esp + 0xc8], 0
push 1
lea ecx, [esp + 0x74]
call fcn.004031c0
push 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0xcc], 0xffffffff
call fcn.004031c0
jmp 0x522fbb
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x3c]
mov eax, dword [esi + 0xb4]
lea edi, [esi + 0xb0]
push eax
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.00473b10
mov ecx, dword [eax]
lea edx, [esp + 0x30]
push ecx
push edx
mov ecx, edi
call fcn.0047cee0
mov edx, dword [ebp]
inc edx
mov dword [ebp], edx
mov ecx, dword [ebx + 4]
mov eax, edx
cmp eax, ecx
jle 0x522e73
mov byte [esp + 0x14], 0
jmp 0x522e7e
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
and eax, 0xff
jle 0x522fb2
mov dword [esp + 0x2c], eax
mov edx, dword [ebp]
inc edx
mov dword [ebp], edx
mov ecx, dword [ebx + 4]
mov eax, edx
cmp eax, ecx
jle 0x522ea8
mov byte [esp + 0x14], 0
jmp 0x522eb3
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x14], dl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
inc eax
mov dword [esp + 0x18], ecx
mov dword [ebp], eax
cmp eax, dword [ebx + 4]
jle 0x522ed1
mov byte [esp + 0x3c], 0
jmp 0x522edc
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x3c], dl
mov ecx, dword [esp + 0x3c]
and ecx, 0xff
inc eax
mov dword [esp + 0x1c], ecx
mov dword [ebp], eax
cmp eax, dword [ebx + 4]
jle 0x522efa
mov byte [esp + 0x38], 0
jmp 0x522f05
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x38], dl
mov ecx, dword [esp + 0x38]
and ecx, 0xff
inc eax
mov dword [esp + 0x20], ecx
mov dword [ebp], eax
cmp eax, dword [ebx + 4]
jle 0x522f23
mov byte [esp + 0x30], 0
jmp 0x522f2e
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x30], dl
mov edi, dword [esp + 0x30]
lea eax, [esi + 0xb0]
push 0x18
and edi, 0xff
mov esi, dword [eax + 4]
mov eax, dword [esi + 4]
mov dword [esp + 0x38], eax
call fcn.00673b05
add esp, 4
mov ecx, esi
test esi, esi
jne 0x522f5a
mov ecx, eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x522f66
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
add eax, 8
test eax, eax
je 0x522f8f
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x28]
add eax, 0xb0
mov ecx, dword [eax + 8]
inc ecx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x522e91
push 0
mov ecx, esi
call fcn.00522240
mov ecx, dword [esp + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbc
ret 8