Function at 0x440dd2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
sub esp, 0x9c
lea ebp, [esp - 4]
mov eax, dword [0x4d6080]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x68
mov eax, 0x4a71dc
call fcn.004646e0
mov eax, dword [ebp + 0xb0]
mov edi, dword [ebp + 0xa8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xb4]
mov esi, ecx
xor ebx, ebx
lea ecx, [ebp + 0x68]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ebx
call fcn.004408e1
mov dword [ebp - 4], ebx
cmp word [edi + 0x118], bx
setne byte [ebp - 0xe]
cmp dword [esi + 0x210], ebx
je 0x440e66
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
lea eax, [esi + 4]
push eax
call edi
mov dword [ebp - 0x2c], eax
cmp eax, 0xffffffff
jne 0x440e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x68]
call fcn.00440875
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.004646d1
add ebp, 0xa0
leave
ret 0x10
push ebx
push ebx
push dword [ebp + 0xac]
mov ecx, esi
push eax
call fcn.0043fb00
test eax, eax
je 0x440e66
cmp byte [ebp - 0xe], bl
je 0x440ec5
cmp dword [ebp + 0x84], 8
jb 0x440ec0
mov eax, dword [ebp + 0x70]
jmp 0x440ec8
lea eax, [ebp + 0x70]
jmp 0x440ec8
mov eax, dword [ebp - 0x30]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call edi
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
jne 0x440efc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x2c]
mov dword [esi + 0x21c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x440e66
mov edi, dword [ebp - 0x24]
lea eax, [edi + 0x10c]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, 0x400
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x14], ecx
jae 0x440f1c
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call fcn.004447d5
pop ecx
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.0043fa60
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0xd], al
mov al, byte [edi + 0x104]
shr al, 2
xor esi, esi
and al, 1
inc esi
mov byte [ebp - 0xf], al
cmp ecx, ebx
je 0x440f5e
push dword [ebp - 0x14]
mov eax, dword [ecx]
push ebx
call dword [eax]
cmp al, bl
jne 0x440fea
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ebx
jmp 0x440fd4
cmp byte [ebp - 0xf], bl
je 0x440f8a
cmp byte [ebp - 0xd], bl
je 0x440f8a
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.00405960
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
add dword [ebp - 0x3c], eax
cmp ecx, ebx
je 0x440fb9
push dword [ebp - 0x38]
mov eax, dword [ecx]
push dword [ebp - 0x3c]
call dword [eax]
cmp al, bl
jne 0x440fea
mov eax, dword [ebp - 0x18]
sub dword [ebp - 0x14], eax
je 0x440fec
cmp eax, ebx
je 0x440fec
cmp dword [ebp - 0x14], 0x400
jae 0x440fd4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x440f6f
jmp 0x440fec
xor esi, esi
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp - 0x34]
call edi
cmp esi, ebx
je 0x441073
cmp byte [ebp - 0xf], bl
jne 0x441073
cmp byte [ebp - 0xd], bl
je 0x441073
cmp byte [ebp - 0xe], bl
je 0x44102b
cmp dword [ebp + 0x84], 8
jb 0x441026
mov eax, dword [ebp + 0x70]
jmp 0x441053
lea eax, [ebp + 0x70]
jmp 0x441053
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp + 0x34]
call fcn.004018b0
mov byte [ebp - 4], 1
cmp dword [eax + 0x1c], 8
mov dword [ebp - 0x28], edi
jb 0x441050
mov eax, dword [eax + 8]
jmp 0x441053
add eax, 8
push dword [ebp - 0x24]
push eax
call fcn.00405b3d
pop ecx
pop ecx
mov dword [ebp - 4], ebx
test byte [ebp - 0x28], 1
je 0x441073
and dword [ebp - 0x28], 0xfffffffe
lea ecx, [ebp + 0x34]
call fcn.00401670
cmp byte [ebp - 0xe], bl
je 0x441176
mov esi, dword [ebp - 0x40]
cmp esi, ebx
je 0x44111e
mov eax, dword [ebp - 0x14]
shr eax, 0xe
mov edi, eax
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x24]
lea ecx, [ebp]
call fcn.0040ae09
mov byte [ebp - 4], 2
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x74]
call fcn.004096ba
mov byte [ebp - 4], 3
push ebx
lea ecx, [ebp + 0x34]
push ecx
mov ecx, eax
call fcn.0040ad44
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.004016d0
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
call fcn.0041c568
test al, al
je 0x4410ed
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
call fcn.004091a5
lea ecx, [ebp]
call fcn.0040ea2e
mov edx, dword [esi]
push eax
push 1
mov ecx, esi
call dword [edx + 4]
mov eax, dword [esi]
push edi
push ebx
mov ecx, esi
call dword [eax]
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x34]
call fcn.004016d0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.004016d0
or dword [ebp - 0x38], 0xffffffff
push 1
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x30]
lea ecx, [ebp]
call fcn.004096ba
mov byte [ebp - 4], 6
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x68]
call fcn.004408b0
mov byte [ebp - 4], 7
push esi
lea eax, [ebp]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp - 0x38]
call fcn.0049bf20
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov byte [ebp - 4], 6
lea ecx, [ebp + 0x34]
call fcn.004016d0
mov byte [ebp - 4], bl
lea ecx, [ebp]
call fcn.004016d0
push dword [ebp - 0x20]
call fcn.00463f3b
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x68]
call fcn.00440875
mov eax, esi
jmp 0x440e74