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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5b5699
push eax
mov dword fs:[0], esp
sub esp, 0xc8
push ebx
push esi
call fcn.00521e00
test eax, eax
je 0x5223f0
mov eax, dword [0x613250]
mov ecx, dword [0x61325c]
cmp eax, ecx
je 0x521fec
push eax
call fcn.00521ed0
mov eax, dword [0x613250]
add esp, 4
mov dword [0x61325c], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov dword [esp + 0xc], ebx
call fcn.00521f10
mov eax, dword [esp + 0xc]
add esp, 4
cmp eax, ebx
je 0x5223f0
push 0x6b682c
push 0x1388
push 0x6b5490
call fcn.00521e10
mov eax, dword [0x6b682c]
add esp, 0xc
cmp eax, 0xd
jbe 0x5223f0
mov byte [esp + 0x74], bl
mov byte [esp + 0x7b], bl
mov dword [esp + 0xd8], ebx
mov byte [esp + 0x86], bl
mov byte [esp + 0x8d], bl
mov esi, 0x64
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], esi
push 7
lea ecx, [esp + 0x9c]
mov byte [esp + 0xdc], 2
mov dword [esp + 0xc4], ebx
call fcn.0040ae50
mov dword [esp + 0xcc], 1
mov dword [esp + 0xc8], 1
mov dword [esp + 0xd8], 3
mov byte [esp + 0x60], bl
mov byte [esp + 0x67], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x3f], bl
push ebx
push 0x6b5490
lea ecx, [esp + 0x40]
mov byte [esp + 0xe0], 5
call fcn.0040b320
push ebx
push 0x6b5496
lea ecx, [esp + 0x68]
call fcn.0040b320
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], esi
push 7
lea ecx, [esp + 0x10]
mov byte [esp + 0xdc], 6
call fcn.0040ae50
mov eax, dword [0x6b682c]
cmp eax, 0x2a
jne 0x522229
cmp byte [0x6b549d], 6
jne 0x522241
mov dl, byte [0x6b54a4]
mov al, byte [0x6b54a5]
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], 3
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0xcc
mov byte [esp + 0x1c], 7
mov byte [esp + 0x1d], 4
mov byte [esp + 0x1e], dl
mov byte [esp + 0x1f], al
mov byte [esp + 0x4c], bl
mov byte [esp + 0x53], bl
push 0x6b54a6
lea ecx, [esp + 0x50]
mov byte [esp + 0xdc], 7
call fcn.0040b470
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040b480
mov dl, byte [0x6b54ac]
mov cl, byte [0x6b54ae]
mov al, byte [0x6b54ad]
mov byte [esp + 0x27], dl
mov dl, byte [0x6b54af]
mov byte [esp + 0x29], cl
push 0x6b54b0
lea ecx, [esp + 0x50]
mov byte [esp + 0x2c], al
mov byte [esp + 0x2e], dl
call fcn.0040b470
lea eax, [esp + 0x2b]
lea ecx, [esp + 0x4c]
push eax
call fcn.0040b480
mov dl, byte [0x6b54b7]
mov cl, byte [0x6b54b6]
mov al, byte [0x6b54b8]
mov byte [esp + 0x33], dl
lea edx, [esp + 0x18]
push 0x1e
push edx
push 0xcd
push ebx
mov byte [esp + 0x42], cl
mov cl, byte [0x6b54b9]
push ebx
push ebx
mov byte [esp + 0x4c], al
push 1
mov byte [esp + 0x51], cl
push 0xa
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x5c]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
lea ecx, [esp + 0xa4]
call fcn.0040ca40
mov ecx, dword [esp + 0xe0]
push ebx
lea edx, [esp + 0x78]
push ebx
mov eax, dword [ecx]
push edx
push 0x86
call dword [eax + 4]
jmp 0x52236d
cmp eax, 0x1388
jae 0x52236d
cmp byte [0x6b549d], 6
je 0x52236d
cmp dword [0x613254], ebx
je 0x522321
push edi
lea ecx, [esp + 0x3c]
mov edi, 0x600a48
call fcn.0040add0
mov esi, eax
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x522286
cmp al, bl
je 0x522282
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x522286
add esi, 2
add edi, 2
cmp al, bl
jne 0x52225e
xor eax, eax
jmp 0x52228b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
pop edi
jne 0x52231c
mov eax, dword [esp + 0x14]
mov byte [esp + 0xd8], 5
cmp eax, ebx
je 0x5222c1
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004b9ef0
push ecx
push 0x12
push eax
call fcn.00557353
push esi
call fcn.00571134
add esp, 4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd8], 0xa
cmp eax, ebx
mov dword [esp + 0x98], ebx
je 0x5222e7
push eax
call fcn.00571134
add esp, 4
mov ecx, dword [esp + 0xa0]
mov byte [esp + 0xd8], 9
cmp ecx, ebx
je 0x5223f0
push 3
call fcn.0040abd0
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
add esp, 0xd4
ret
mov eax, dword [0x6b682c]
add eax, 0xfffffff2
lea edx, [esp + 0xc]
push eax
push 0x6b549e
push 0xcc
push ebx
push ebx
push ebx
push 1
push 0xa
push ebx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [esp + 0xa4]
call fcn.0040ca40
mov ecx, dword [esp + 0xe0]
push ebx
lea eax, [esp + 0x78]
push ebx
mov edx, dword [ecx]
push eax
push 0x86
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov byte [esp + 0xd8], 5
cmp eax, ebx
je 0x52239a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004b9ef0
push ecx
push 0x12
push eax
call fcn.00557353
push esi
call fcn.00571134
add esp, 4
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd8], 0xd
cmp eax, ebx
mov dword [esp + 0x98], ebx
je 0x5223c0
push eax
call fcn.00571134
add esp, 4
mov eax, dword [esp + 0xa0]
mov byte [esp + 0xd8], 0xc
cmp eax, ebx
je 0x5223f0
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004b9ef0
push edx
push 0x12
push eax
call fcn.00557353
push esi
call fcn.00571134
add esp, 4
mov ecx, dword [esp + 0xd0]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xd4
ret