Function at 0x411630
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446b13
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x454280]
xor eax, esp
mov dword [esp + 0x450], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x454280]
xor eax, esp
push eax
lea eax, [esp + 0x468]
mov dword fs:[0], eax
mov eax, dword [esp + 0x478]
mov ebp, dword [esp + 0x47c]
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x44b2f8
mov dword [esp + 0x40], eax
call fcn.0040fde0
mov dword [esp + 0x470], 0
mov eax, dword [esi]
test eax, eax
je 0x4116b9
cmp eax, 0xffffffff
je 0x4116b9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x411901
mov dword [esi], 0xffffffff
mov eax, dword [ebp]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x44]
push ecx
push 0x400
lea edx, [esp + 0x70]
push edx
push eax
call ebx
test eax, eax
je 0x411794
mov edi, edi
mov edi, dword [esp + 0x40]
test edi, edi
je 0x411794
mov edx, dword [0x4564f4]
mov eax, dword [edx]
push 2
push edi
mov ecx, 0x4564f4
call eax
test eax, eax
je 0x411933
test edi, edi
lea esi, [eax + 0x10]
mov dword [esp + 0x38], esi
jl 0x411938
cmp edi, dword [esi - 8]
jg 0x411938
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x68]
push ecx
push eax
mov dword [esi - 0xc], edi
push esi
mov word [eax + esi], 0
call fcn.004292bb
add esp, 0x10
mov byte [esp + 0x470], 1
mov eax, dword [esi - 0xc]
push eax
push esi
lea edx, [esp + 0x20]
push edx
call fcn.004093b0
lea eax, [esi - 0x10]
mov byte [esp + 0x470], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411775
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp]
push 0
lea ecx, [esp + 0x44]
push ecx
push 0x400
lea edx, [esp + 0x70]
push edx
push eax
call ebx
test eax, eax
jne 0x4116e0
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp dword [ecx - 0xc], esi
jle 0x411cd0
test esi, esi
mov eax, dword [ecx - 0xc]
jl 0x411cd0
cmp esi, eax
jge 0x411cd0
lea ecx, [ecx + esi*2]
push 0x2d
push ecx
call fcn.00429274
add esp, 8
test eax, eax
je 0x411ccc
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x411cd0
lea edx, [eax + 1]
test edx, edx
mov eax, dword [ecx - 0xc]
mov dword [esp + 0x28], edx
jl 0x411cd0
cmp edx, eax
jge 0x411cd0
lea edx, [ecx + edx*2]
push 0x2d
push edx
call fcn.00429274
add esp, 8
test eax, eax
je 0x411ccc
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov ebp, eax
cmp ebp, 0xffffffff
je 0x411cd0
mov eax, dword [ecx - 0xc]
lea edx, [ebp + 1]
test edx, edx
mov dword [esp + 0x2c], edx
jl 0x411cd0
cmp edx, eax
jge 0x411cd0
lea eax, [ecx + edx*2]
push 0x2d
push eax
call fcn.00429274
add esp, 8
test eax, eax
je 0x411ccc
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411cd0
mov eax, dword [ecx - 0xc]
lea edx, [ebx + 1]
test edx, edx
mov dword [esp + 0x30], edx
jl 0x411cd0
cmp edx, eax
jge 0x411cd0
lea ecx, [ecx + edx*2]
push 0x2d
push ecx
call fcn.00429274
add esp, 8
test eax, eax
je 0x411ccc
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov edi, eax
cmp edi, 0xffffffff
je 0x411cd0
mov eax, dword [ecx - 0xc]
lea edx, [edi + 1]
test edx, edx
mov dword [esp + 0x34], edx
jl 0x411cd0
cmp edx, eax
jge 0x411cd0
lea edx, [ecx + edx*2]
push 0x2d
push edx
call fcn.00429274
add esp, 8
test eax, eax
je 0x411ccc
mov ecx, dword [esp + 0x18]
sub eax, ecx
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x38], esi
je 0x411cd0
cmp dword [esp + 0x24], 2
jge 0x411942
mov esi, dword [esp + 0x28]
jmp 0x411cc1
mov dword [esp + 0x470], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41192c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x411d07
call fcn.00412250
push 0x80070057
call fcn.00402470
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffd
cmp esi, eax
jg 0x411cd0
mov eax, ebp
sub eax, dword [esp + 0x24]
cmp eax, 3
jne 0x4118f8
mov edx, ebx
sub edx, ebp
cmp edx, eax
jne 0x4118f8
mov eax, edi
sub eax, ebx
cmp eax, 3
jne 0x4118f8
mov edx, esi
sub edx, edi
cmp edx, eax
jne 0x4118f8
mov eax, dword [0x4564f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4564f4
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
mov byte [esp + 0x474], 2
add eax, 0xfffffffe
lea ecx, [esp + 0x5c]
mov dword [esp + 0x20], 0
call fcn.00411e20
mov byte [esp + 0x470], 3
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00411d40
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4119ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 2]
push eax
mov dword [esp + 0x28], ecx
call fcn.0042a7b8
mov dword [esp + 0x30], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x60]
call fcn.00411e20
mov byte [esp + 0x470], 4
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00411d40
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411a56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 2]
push eax
mov dword [esp + 0x28], ecx
call fcn.0042a7b8
mov dword [esp + 0x34], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x54]
call fcn.00411e20
mov byte [esp + 0x470], 5
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00411d40
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ac2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 2]
push eax
mov dword [esp + 0x28], ecx
call fcn.0042a7b8
mov dword [esp + 0x38], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x48]
call fcn.00411e20
mov byte [esp + 0x470], 6
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00411d40
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 2]
push eax
mov dword [esp + 0x28], ecx
call fcn.0042a7b8
mov dword [esp + 0x3c], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x64]
call fcn.00411e20
mov byte [esp + 0x470], 7
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00411d40
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x20]
push edx
lea ecx, [eax + 2]
push eax
mov dword [esp + 0x28], ecx
call fcn.0042a7b8
add esp, 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], eax
push ecx
lea eax, [esi + 1]
lea ecx, [esp + 0x4c]
call fcn.00411e20
mov byte [esp + 0x470], 8
mov ebx, dword [eax]
lea eax, [esp + 0x20]
call fcn.00411d40
mov byte [esp + 0x470], 2
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411c05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
push 0x10
lea edx, [esp + 0x20]
push edx
lea ecx, [ebx + 2]
push ebx
mov dword [esp + 0x28], ecx
call fcn.0042a7b8
add esp, 0xc
push 8
mov dword [esp + 0x50], eax
call fcn.0042807d
movzx edx, byte [esp + 0x2c]
mov ebp, dword [esp + 0x40]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
movzx ecx, byte [esp + 0x28]
mov byte [eax], cl
movzx ecx, byte [esp + 0x30]
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x34]
mov byte [eax + 2], cl
movzx ecx, byte [esp + 0x38]
mov byte [eax + 3], dl
movzx edx, byte [esp + 0x50]
mov byte [eax + 4], cl
mov byte [eax + 5], dl
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
add esp, 4
mov dword [esp + 0x54], eax
add ebp, 0xc
lea eax, [esp + 0x54]
push eax
push ecx
push esi
call fcn.00412070
mov ecx, ebp
mov edi, eax
call fcn.004120b0
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov esi, dword [esp + 0x38]
add ebx, 0xfffffff0
mov dword [eax], edi
add esi, 3
mov byte [esp + 0x470], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x411cbd
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx - 0xc]
jl 0x4117a3
jmp 0x411cd0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
xor edx, edx
cmp dword [eax + 0x14], edx
lea eax, [ecx - 0x10]
setne dl
mov dword [esp + 0x470], 0xffffffff
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411d05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x468]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x450]
xor ecx, esp
call fcn.00429296
add esp, 0x460
ret 8