Function at 0x5b8120
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x66274b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x5b8153
lea eax, [ebx + 0x58]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00402a70
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x24]
push 0x6b1e08
push ecx
call fcn.00625553
mov edi, eax
add esp, 0x14
test edi, edi
je 0x5b819e
push edi
call fcn.00624837
push eax
call fcn.006225fa
mov esi, eax
add esp, 8
test esi, esi
jg 0x5b81c5
push edi
call fcn.0061fca7
add esp, 4
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp esi, 0x2800
jle 0x5b81d2
mov esi, 0x2800
lea ecx, [esp + 0x14]
call fcn.00402500
mov byte [esp + 0x2c], 1
push esi
lea ecx, [esp + 0x18]
call fcn.00402850
push edi
push esi
mov ebp, eax
push 1
push ebp
call fcn.006222ec
push edi
call fcn.0061fca7
push ebp
call fcn.00406b40
add esp, 0x18
test eax, eax
jne 0x5b8317
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x5b82c4
push 0xa
push eax
call fcn.00623923
add esp, 8
test eax, eax
je 0x5b82c4
sub eax, dword [esp + 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x5b82c7
cmp esi, 0x2800
jge 0x5b824a
dec esi
cmp edi, esi
je 0x5b82c7
lea ecx, [esp + 0x1c]
call fcn.00402500
mov byte [esp + 0x2c], 4
mov edx, dword [ebx + 0x28]
mov eax, dword [0x75bc38]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f70
mov edx, dword [0x75bc3c]
mov eax, dword [esp + 0x28]
push 0x50004
push edx
push eax
push 0
call fcn.00472580
add esp, 0x1c
cmp eax, 7
je 0x5b8309
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x5b82a6
push 0
push 0x1472
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x54]
test eax, eax
jne 0x5b82b0
lea eax, [ebx + 0x58]
mov ecx, dword [ebx + 0x14]
push eax
push 0x13bd
push 0x111
push ecx
jmp 0x5b83d2
or edi, 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.00402500
mov byte [esp + 0x2c], 2
mov edx, dword [ebx + 0x28]
mov eax, dword [0x75bc34]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00402f70
mov edx, dword [0x75bc3c]
mov eax, dword [esp + 0x28]
push 0x50004
push edx
push eax
push 0
call fcn.00472580
add esp, 0x1c
cmp eax, 7
jne 0x5b832a
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x1c]
call fcn.00402570
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x14]
call fcn.00402570
jmp 0x5b819e
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jle 0x5b8350
push 0xd
push eax
call fcn.00623923
add esp, 8
test eax, eax
je 0x5b8350
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x5b8350
mov byte [eax + ebp], 0
cmp edi, 0xffffffff
je 0x5b8359
mov byte [edi + ebp], 0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x5b8373
push 0
push 0x1472
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xa0
call fcn.005f1588
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x2c], 3
test eax, eax
je 0x5b8398
mov ecx, eax
call fcn.00427620
mov esi, eax
jmp 0x5b839a
xor esi, esi
mov byte [esp + 0x2c], 2
mov ecx, dword [esp + 0x14]
push ecx
push 0x675ea0
push esi
call fcn.00402f70
add esp, 0xc
push esi
push 0
mov dword [esi + 0x84], 4
mov dword [esi + 0x90], 0
mov edx, dword [ebx + 0x14]
push 0x2b3e
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov byte [esp + 0x2c], 1
lea ecx, [esp + 0x1c]
call fcn.00402570
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x14]
call fcn.00402570
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 0x18]
call fcn.00402570
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret