Function at 0x411760
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x448a77
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.00440790
mov eax, dword [0x457118]
xor eax, esp
mov dword [esp + 0x1028], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457118]
xor eax, esp
push eax
lea eax, [esp + 0x1040]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1050]
mov eax, dword [eax]
xor ebx, ebx
cmp dword [eax - 0xc], ebx
mov edi, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], ebx
jne 0x4117cf
push edi
mov ecx, 0x44da60
call fcn.00401720
mov eax, edi
jmp 0x411b47
push ebx
push 0x80
push 4
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4117bd
mov edx, dword [0x458a2c]
mov eax, dword [edx + 0xc]
mov ecx, 0x458a2c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 0x1001
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x1054], ebx
call fcn.00432ba0
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push ebx
lea edx, [esp + 0x24]
push edx
push 0x1000
lea eax, [esp + 0x44]
push eax
push esi
call edi
test eax, eax
je 0x411895
lea ebx, [ebx]
cmp dword [esp + 0x20], ebx
jbe 0x411895
lea eax, [esp + 0x38]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x411850
sub eax, edx
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00416130
push 0x1001
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00432ba0
add esp, 0xc
push ebx
lea ecx, [esp + 0x24]
push ecx
push 0x1000
lea edx, [esp + 0x44]
push edx
push esi
call edi
test eax, eax
jne 0x411840
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
mov ecx, 0x44da60
call fcn.00401720
mov byte [esp + 0x1048], 1
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
mov dword [esp + 0x20], eax
call fcn.00415ca0
add eax, 0x10
lea ebx, [esp + 0x18]
mov dword [esi], eax
call fcn.00421510
add esp, 4
mov byte [esp + 0x1048], 2
xor ebp, ebp
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
add ecx, ebp
test eax, eax
je 0x411ab8
test ecx, ecx
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
jl 0x411ab8
cmp ecx, esi
jg 0x411ab8
push eax
lea ecx, [edx + ecx*2]
push ecx
call fcn.0042ecb2
add esp, 8
test eax, eax
je 0x411ab8
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov ebp, eax
js 0x411ab8
cmp dword [esp + 0x1054], 0
mov edx, dword [edi]
mov eax, dword [edx - 0xc]
mov edx, dword [ecx - 0xc]
je 0x411a01
add eax, ebp
js 0x411970
cmp eax, edx
jge 0x411970
lea eax, [ecx + eax*2]
push 0x22
push eax
call fcn.0042ed10
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x411970
sub eax, ecx
sar eax, 1
mov edi, eax
jmp 0x411973
or edi, 0xffffffff
mov eax, dword [ecx - 0xc]
lea esi, [edi + 1]
test esi, esi
jl 0x41199b
cmp esi, eax
jge 0x41199b
lea ecx, [ecx + esi*2]
push 0x22
push ecx
call fcn.0042ed10
add esp, 8
test eax, eax
je 0x41199b
sub eax, dword [esp + 0x14]
sar eax, 1
jmp 0x41199e
or eax, 0xffffffff
lea edx, [esp + 0x14]
sub eax, edi
push edx
sub eax, 1
mov ecx, esi
lea edx, [esp + 0x34]
call fcn.00415520
lea edi, [esp + 0x18]
mov byte [esp + 0x1048], 3
call fcn.00402e30
mov byte [esp + 0x1048], 2
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4119ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x18]
call fcn.00415a90
mov ebx, eax
call fcn.00415ae0
jmp 0x4118e5
add eax, ebp
js 0x411a27
cmp eax, edx
jge 0x411a27
lea eax, [ecx + eax*2]
push 0x2c
push eax
call fcn.0042ed10
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x411a27
sub eax, ecx
sar eax, 1
mov edi, eax
jmp 0x411a2a
or edi, 0xffffffff
mov eax, dword [ecx - 0xc]
lea esi, [edi + 1]
test esi, esi
jl 0x411a52
cmp esi, eax
jge 0x411a52
lea ecx, [ecx + esi*2]
push 0x29
push ecx
call fcn.0042ed10
add esp, 8
test eax, eax
je 0x411a52
sub eax, dword [esp + 0x14]
sar eax, 1
jmp 0x411a55
or eax, 0xffffffff
lea edx, [esp + 0x14]
sub eax, edi
push edx
sub eax, 1
mov ecx, esi
lea edx, [esp + 0x38]
call fcn.00415520
lea edi, [esp + 0x18]
mov byte [esp + 0x1048], 4
call fcn.00402e30
mov byte [esp + 0x1048], 2
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411aa3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x18]
call fcn.00415a90
mov ebx, eax
call fcn.00415ae0
jmp 0x4118e5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401a70
mov esi, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x1048], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411af5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1048], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1048], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1028]
xor ecx, esp
call fcn.0042e417
add esp, 0x1038
ret 8