Function at 0x416200
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x450047
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.00446070
mov eax, dword [0x460164]
xor eax, esp
mov dword [esp + 0x1024], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x460164]
xor eax, esp
push eax
lea eax, [esp + 0x103c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x104c]
xor ebp, ebp
mov dword [esp + 0x24], ebp
mov eax, dword [eax]
cmp dword [eax - 0xc], ebp
mov edi, ecx
mov ebx, edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebx
jne 0x416271
push edi
mov ecx, 0x454c34
call fcn.00401a60
mov eax, edi
jmp 0x4165d1
push ebp
push 0x80
push 4
push ebp
push ebp
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41625f
mov eax, dword [0x461acc]
mov edx, dword [eax + 0xc]
mov ecx, 0x461acc
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x1001
lea eax, [esp + 0x38]
push ebp
push eax
mov dword [esp + 0x1050], ebp
call fcn.00439d50
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
push ebp
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
lea edx, [esp + 0x40]
push edx
push esi
call edi
test eax, eax
je 0x416335
jmp 0x4162e0
cmp dword [esp + 0x28], ebp
jbe 0x416335
lea eax, [esp + 0x34]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4162f0
sub eax, edx
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0041c0a0
push 0x1001
lea edx, [esp + 0x38]
push ebp
push edx
call fcn.00439d50
add esp, 0xc
push ebp
lea eax, [esp + 0x2c]
push eax
push 0x1000
lea ecx, [esp + 0x40]
push ecx
push esi
call edi
test eax, eax
jne 0x4162e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x18]
push edx
mov ecx, 0x454c34
call fcn.00401a60
lea ecx, [esp + 0x1c]
lea esi, [esp + 0x14]
mov byte [esp + 0x1044], 1
call fcn.004281f0
mov byte [esp + 0x1044], 2
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
add ecx, ebp
test eax, eax
je 0x41653f
test ecx, ecx
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
jl 0x41653f
cmp ecx, esi
jg 0x41653f
push eax
lea eax, [edx + ecx*2]
push eax
call fcn.00435f8f
add esp, 8
test eax, eax
je 0x41653f
mov ecx, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov ebp, eax
js 0x41653f
cmp dword [esp + 0x1050], 0
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
mov edx, dword [ecx - 0xc]
je 0x416484
add eax, ebp
js 0x4163ef
cmp eax, edx
jge 0x4163ef
lea eax, [ecx + eax*2]
push 0x22
push eax
call fcn.004359f0
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4163ef
sub eax, ecx
sar eax, 1
mov edi, eax
jmp 0x4163f2
or edi, 0xffffffff
mov eax, dword [ecx - 0xc]
lea esi, [edi + 1]
test esi, esi
jl 0x41641a
cmp esi, eax
jge 0x41641a
lea ecx, [ecx + esi*2]
push 0x22
push ecx
call fcn.004359f0
add esp, 8
test eax, eax
je 0x41641a
sub eax, dword [esp + 0x14]
sar eax, 1
jmp 0x41641d
or eax, 0xffffffff
lea edx, [esp + 0x14]
sub eax, edi
push edx
sub eax, 1
mov ecx, esi
lea edx, [esp + 0x34]
call fcn.0041b530
lea edi, [esp + 0x18]
mov byte [esp + 0x1044], 3
call fcn.00403c60
mov byte [esp + 0x1044], 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 0x41646b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x18]
call fcn.0041ba50
mov ebx, eax
call fcn.0041baa0
mov ebx, dword [esp + 0x20]
jmp 0x416368
add eax, ebp
js 0x4164aa
cmp eax, edx
jge 0x4164aa
lea eax, [ecx + eax*2]
push 0x2c
push eax
call fcn.004359f0
mov ecx, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x4164aa
sub eax, ecx
sar eax, 1
mov edi, eax
jmp 0x4164ad
or edi, 0xffffffff
mov eax, dword [ecx - 0xc]
lea esi, [edi + 1]
test esi, esi
jl 0x4164d5
cmp esi, eax
jge 0x4164d5
lea ecx, [ecx + esi*2]
push 0x29
push ecx
call fcn.004359f0
add esp, 8
test eax, eax
je 0x4164d5
sub eax, dword [esp + 0x14]
sar eax, 1
jmp 0x4164d8
or eax, 0xffffffff
lea edx, [esp + 0x14]
sub eax, edi
push edx
sub eax, 1
mov ecx, esi
lea edx, [esp + 0x28]
call fcn.0041b530
lea edi, [esp + 0x18]
mov byte [esp + 0x1044], 4
call fcn.00403c60
mov byte [esp + 0x1044], 2
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416526
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x18]
call fcn.0041ba50
mov ebx, eax
call fcn.0041baa0
mov ebx, dword [esp + 0x20]
jmp 0x416368
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.00401dd0
mov esi, dword [esp + 0x2c]
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x1044], 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 0x41657c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1044], 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 0x4165a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1044], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4165cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x103c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1024]
xor ecx, esp
call fcn.00435245
add esp, 0x1034
ret 8