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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x7c0e10
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00524360
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
mov edx, dword [esi]
add edx, 2
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, ecx
jle 0x5238bf
xor ebp, ebp
jmp 0x5238c7
mov ecx, dword [edi + 8]
mov bp, word [ecx + eax - 2]
add eax, 2
mov dword [esi], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
jle 0x5238d7
xor eax, eax
jmp 0x5238df
mov edx, dword [edi + 8]
mov ax, word [edx + eax - 2]
mov ecx, dword [ebx + 0xbc]
movsx eax, ax
test ecx, ecx
mov dword [ebx + 0x154], eax
je 0x5238fc
mov edx, dword [ecx]
inc eax
push eax
call dword [edx + 0xa0]
movsx eax, bp
test eax, eax
jle 0x523c2f
lea ecx, [ebx + 0xe8]
add ebx, 0x164
mov dword [esp + 0x18], ecx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x1c], eax
mov dl, byte [esp + 0x7c]
push 0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], dl
call fcn.00404e60
mov al, byte [esp + 0x7c]
mov dword [esp + 0x70], 0
push 0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4c], al
call fcn.00404e60
mov cl, byte [esp + 0x7c]
mov byte [esp + 0x70], 1
mov byte [esp + 0x38], cl
push 0
lea ecx, [esp + 0x3c]
call fcn.00404e60
mov dl, byte [esp + 0x7c]
mov byte [esp + 0x70], 2
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], dl
call fcn.00404e60
mov edx, dword [esi]
mov byte [esp + 0x70], 3
add edx, 2
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, ecx
jle 0x523996
xor ecx, ecx
jmp 0x52399e
mov ecx, dword [edi + 8]
mov cx, word [ecx + eax - 2]
inc eax
movsx edx, cx
mov dword [esi], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
mov dword [esp + 0x20], edx
jle 0x5239b6
mov byte [esp + 0x78], 0
jmp 0x5239c1
mov ecx, dword [edi + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x78], dl
mov ecx, dword [esp + 0x78]
and ecx, 0xff
inc eax
mov dword [esp + 0x24], ecx
mov dword [esi], eax
cmp eax, dword [edi + 4]
jle 0x5239de
mov byte [esp + 0x10], 0
jmp 0x5239e9
mov ecx, dword [edi + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x10], dl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
inc eax
mov dword [esi], eax
mov ecx, dword [edi + 4]
cmp eax, ecx
jle 0x523a04
mov byte [esp + 0x14], 0
jmp 0x523a0f
mov ecx, dword [edi + 8]
mov dl, byte [ecx + eax - 1]
mov byte [esp + 0x14], dl
mov ebp, dword [esp + 0x14]
add eax, 2
mov dword [esi], eax
mov ecx, dword [edi + 4]
and ebp, 0xff
cmp eax, ecx
jle 0x523a29
xor eax, eax
jmp 0x523a31
mov ecx, dword [edi + 8]
mov ax, word [ecx + eax - 2]
movsx edx, ax
lea eax, [esp + 0x28]
push edx
push eax
push esi
push edi
call fcn.004635b0
mov edx, dword [esi]
add esp, 0x10
add edx, 2
mov dword [esi], edx
mov ecx, dword [edi + 4]
mov eax, edx
cmp eax, ecx
jle 0x523a58
xor eax, eax
jmp 0x523a60
mov ecx, dword [edi + 8]
mov ax, word [ecx + eax - 2]
movsx eax, ax
lea edx, [esp + 0x58]
push eax
push edx
push esi
push edi
call fcn.004635b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add esp, 0x10
lea edx, [esp + 0x58]
push ebp
push eax
push ebx
push ecx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004267d0
sub esp, 0x10
lea eax, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0xa4], 4
call fcn.004267d0
mov ecx, dword [esp + 0xac]
mov byte [esp + 0xa0], 3
add ecx, 0xfffffffc
call fcn.00522080
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x523adc
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
push eax
call dword [edx + 0x9c]
mov ecx, dword [ebp]
test ecx, ecx
je 0x523af3
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
add eax, 0x10
push eax
call dword [edx + 0x9c]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x523b0a
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
add eax, 0x28
push eax
call dword [edx + 0x9c]
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x523b58
mov eax, dword [esp + 0x7c]
mov edx, dword [ecx]
add eax, 0x3c
push eax
call dword [edx + 0x9c]
mov eax, dword [ebp + 0x28]
cmp ebx, 1
jne 0x523b40
mov ecx, 0xff80ff80
mov dword [eax + 0xd8], ecx
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x523b58
jmp 0x523b55
mov ecx, 0xffff8080
mov dword [eax + 0xd8], ecx
mov eax, dword [eax + 0xbc]
test eax, eax
je 0x523b58
mov dword [eax + 0x2c], ecx
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x74], 2
call fcn.00404e60
mov eax, dword [esp + 0x3c]
xor ebx, ebx
cmp eax, ebx
mov byte [esp + 0x70], 1
je 0x523b94
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x523b8b
cmp al, 0xff
je 0x523b8b
dec al
mov byte [ecx], al
jmp 0x523b94
push ecx
call fcn.007a02e0
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
cmp eax, ebx
mov byte [esp + 0x70], 0
je 0x523bca
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x523bc1
cmp al, 0xff
je 0x523bc1
dec al
mov byte [ecx], al
jmp 0x523bca
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
cmp ecx, ebx
mov dword [esp + 0x70], 0xffffffff
je 0x523c02
mov al, byte [ecx - 1]
test al, al
je 0x523bf8
cmp al, 0xff
je 0x523bf8
dec al
mov byte [ecx - 1], al
jmp 0x523c02
dec ecx
push ecx
call fcn.007a02e0
add esp, 4
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
add ebp, 4
add ecx, 0x54
dec eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x1c], eax
jne 0x52391f
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 8