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

Disassembly:
push 0xffffffffffffffff
push 0x5bca1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xb8
mov al, byte [esp + 3]
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea ecx, [esp + 0x24]
push ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], al
call fcn.0050c2c0
lea ecx, [edi + 0x34]
mov dword [esp + 0xd0], ebx
push ecx
lea ecx, [esp + 0x18]
call fcn.0051d000
lea ebp, [edi + 0x44]
lea ecx, [esp + 0x38]
push ebp
call fcn.0051d000
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp esi, eax
je 0x51bae0
mov edx, dword [esi + 4]
lea eax, [esp + 0xa8]
push edx
push eax
mov ecx, edi
call fcn.0051b770
push eax
lea ecx, [esp + 0x4c]
push 0x80d7ac
push ecx
mov byte [esp + 0xdc], 1
call fcn.0051daf0
push 0x80d18c
lea edx, [esp + 0x78]
push eax
push edx
mov byte [esp + 0xe8], 2
call fcn.0051dc40
add esp, 0x18
mov ecx, dword [0x71802c]
mov byte [esp + 0xd0], 3
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.0051d090
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd4], 2
call fcn.0050c2c0
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xd4], 1
call fcn.0050c2c0
push 1
lea ecx, [esp + 0xac]
mov byte [esp + 0xd4], bl
call fcn.0050c2c0
lea edx, [esi + 0xc]
lea eax, [esp + 0x58]
push edx
push 0x80d7a8
push eax
call fcn.0051daf0
push 0x80d18c
lea ecx, [esp + 0x98]
push eax
push ecx
mov byte [esp + 0xe8], 4
call fcn.0051dc40
add esp, 0x18
mov edx, dword [0x71802c]
lea ecx, [esp + 0x24]
push edx
push ebx
push eax
mov byte [esp + 0xdc], 5
call fcn.0051d090
push 1
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd4], 4
call fcn.0050c2c0
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd4], bl
call fcn.0050c2c0
mov esi, dword [esi + 0x1c]
cmp esi, ebx
je 0x51ba94
lea eax, [esp + 0xb8]
push esi
push eax
mov ecx, edi
call fcn.0051b770
push eax
lea ecx, [esp + 0x9c]
push str.See
push ecx
mov byte [esp + 0xdc], 6
call fcn.0051daf0
push str._for_detail._n
lea edx, [esp + 0x88]
push eax
push edx
mov byte [esp + 0xe8], 7
call fcn.0051dc40
add esp, 0x18
mov ecx, dword [0x71802c]
mov byte [esp + 0xd0], 8
push ecx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.0051d090
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 7
call fcn.0050c2c0
push 1
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd4], 6
call fcn.0050c2c0
push 1
lea ecx, [esp + 0xbc]
mov byte [esp + 0xd4], bl
call fcn.0050c2c0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, 0x20
cmp eax, ecx
mov dword [esp + 0x1c], eax
jne 0x51bac6
mov eax, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [eax]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
lea edx, [eax + 0x1000]
mov dword [esp + 0x18], edx
push ebp
lea ecx, [esp + 0x3c]
call fcn.0051d000
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jne 0x51b8da
mov esi, dword [esp + 0xd8]
mov al, byte [esp + 0x24]
lea edx, [esp + 0x24]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x71802c]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.005152f0
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x51bb2e
mov al, byte [ecx - 1]
cmp al, bl
je 0x51bb24
cmp al, 0xff
je 0x51bb24
dec al
mov byte [ecx - 1], al
jmp 0x51bb2e
dec ecx
push ecx
call fcn.005a5841
add esp, 4
mov ecx, dword [esp + 0xc8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret 4