Function at 0x4e4510
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4e4
mov eax, dword [0x54c494]
xor eax, esp
mov dword [esp + 0x4e0], eax
mov eax, dword [esp + 0x4e8]
push ebx
push ebp
mov ebp, dword [esp + 0x4f8]
push esi
mov esi, dword [esp + 0x500]
mov ebx, ecx
cmp dword [ebx + 0xc], 0
mov ecx, dword [esp + 0x508]
push edi
mov edi, dword [esp + 0x4fc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
jne 0x4e451f
push str.partition
push 0x3b
push str...Ext2DirectoryEntry.cpp
call fcn.00407f63
add esp, 0xc
mov edx, dword [ebx]
mov eax, dword [edx + 0x18]
mov ecx, ebx
call eax
test al, al
jne 0x4e4533
xor eax, eax
jmp 0x4e4a5c
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
mov ecx, dword [ebx + 0x70]
mov edx, eax
mov eax, dword [ebx + 0x6c]
push 0
mov dword [esp + 0x1c], edx
mov edx, dword [edx]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x4e4647
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x6c]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edx
call fcn.004e3de0
add esp, 0x14
test eax, eax
jne 0x4e4647
mov ecx, dword [ebx + 0xc]
call fcn.00446d30
test al, al
je 0x4e45b0
mov ecx, dword [ebx + 0xc]
call fcn.00446d40
push eax
lea eax, [esp + 0x6c]
push 0x488
push eax
call fcn.0044af60
add esp, 0xc
mov ecx, dword [ebx + 0xc]
call fcn.00446b70
test eax, eax
je 0x4e45e8
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.0044b5a0
movzx edx, word [esp + 0x38]
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.004ba900
add esp, 0x1c
cmp byte [esp + 0x21], 0
je 0x4e4651
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [ebx - 0x10]
call fcn.004e42b0
mov ecx, eax
call fcn.004e22c0
test eax, eax
je 0x4e4633
add ebx, 0xfffffff0
cmp eax, ebx
je 0x4e4633
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0x48]
lea ecx, [eax + 0x10]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x50c]
push eax
mov eax, dword [esp + 0x38]
push esi
push ebp
push edi
push eax
call edx
jmp 0x4e4a5c
mov eax, dword [esp + 0x68]
push eax
push str.Unable_to_find_hard_link_for__d
push 4
call fcn.004438d0
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x4e4a5c
mov edx, dword [edi]
mov ebp, dword [esp + 0x30]
mov eax, dword [edx + 0x2c]
push esi
push ebp
mov ecx, edi
call eax
cmp eax, 0xfffffff7
je 0x4e4a5c
cmp eax, 0xfffffff9
je 0x4e4a5c
cmp eax, 0xfffffffa
je 0x4e4a5c
cmp dword [ebp + 0x18], 0x10
lea eax, [ebp + 4]
mov dword [esp + 0x2c], eax
jb 0x4e468a
mov eax, dword [eax]
push 0
push 0x8000000
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x34], eax
jne 0x4e46b6
mov eax, 0xfffffff4
jmp 0x4e4a5c
mov edx, dword [ebx]
mov esi, dword [edi]
mov eax, dword [edx + 0x4c]
mov ecx, ebx
mov dword [esp + 0x14], 0
add esi, 0x24
call eax
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
cmp dword [esp + 0x74], 0
jbe 0x4e4a29
push 0x80e8
call fcn.00487d67
mov ecx, dword [ebx + 0xc]
mov ebp, eax
xor edi, edi
mov esi, ebp
add esp, 4
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00446b70
cmp eax, 2
jl 0x4e474c
push 0x80e8
call fcn.00487d67
mov ecx, dword [ebx + 0xc]
add esp, 4
mov dword [esp + 0x1c], eax
call fcn.00446b70
cmp eax, 2
jne 0x4e4748
lea eax, [esp + 0x40]
push eax
push edi
push edi
push edi
push edi
push edi
call fcn.0044bde0
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00487d67
add esp, 0x1c
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x74], edi
je 0x4e496c
mov edi, dword [esp + 0x18]
mov edx, dword [edi]
mov edx, dword [edx + 4]
push 0xa
push 1
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call edx
cmp eax, 0xa
jne 0x4e49e9
mov al, byte [esp + 0x20]
cmp al, 0x20
je 0x4e48a0
cmp al, 0x22
je 0x4e48b8
cmp al, 0x1e
jne 0x4e49e9
movzx ecx, word [esp + 0x28]
mov eax, dword [edi]
mov edx, dword [eax + 4]
push ecx
push 1
push ebp
mov ecx, edi
call edx
movzx ecx, word [esp + 0x28]
cmp eax, ecx
jne 0x4e49e9
mov ecx, dword [ebx + 0xc]
call fcn.00446d30
test al, al
je 0x4e47d4
mov ecx, dword [ebx + 0xc]
call fcn.00446d40
movzx edx, word [esp + 0x28]
push eax
push edx
push ebp
call fcn.0044af60
add esp, 0xc
movzx eax, word [esp + 0x28]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
call fcn.00446b70
cmp eax, 2
jne 0x4e4810
movzx edx, word [esp + 0x28]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
push ebp
push eax
push 2
mov dword [esp + 0x28], 0x80e8
call fcn.0044bde0
add esp, 0x18
jmp 0x4e4842
mov ecx, dword [ebx + 0xc]
call fcn.00446b70
cmp eax, 3
jl 0x4e4842
movzx ecx, word [esp + 0x28]
push ecx
push ebp
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], 0x80e8
call fcn.004e6940
add esp, 0x10
test eax, eax
jne 0x4e4952
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0x10]
jae 0x4e4850
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0xc]
call fcn.00446ba0
test al, al
je 0x4e4873
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
push eax
push esi
push ecx
call fcn.0044ae90
add esp, 0xc
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
push 0
lea edx, [esp + 0x48]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e495f
mov edx, dword [esp + 0x10]
sub dword [esp + 0x74], edx
jmp 0x4e4945
movzx edi, byte [esp + 0x22]
movzx eax, byte [esp + 0x23]
shl edi, 8
add edi, eax
jne 0x4e48bc
mov edi, 0x10000
jmp 0x4e48bc
mov edi, dword [esp + 0x24]
mov eax, dword [ebx + 0xc]
push 1
push 0x54e030
push 0x5484fc
push 0
push eax
call fcn.004b877b
mov esi, dword [eax + 0x5c]
mov eax, dword [esp + 0x88]
imul esi, edi
add esp, 0x14
cmp eax, esi
jae 0x4e48e9
mov esi, eax
sub eax, esi
cmp esi, 0x8000
mov dword [esp + 0x74], eax
mov eax, esi
jb 0x4e48fe
mov eax, 0x8000
push eax
push 0
push ebp
call fcn.004b7050
add esp, 0xc
test esi, esi
je 0x4e493d
mov edi, edi
cmp esi, 0x8000
mov eax, esi
jb 0x4e491f
mov eax, 0x8000
mov edx, dword [esp + 0x34]
push 0
lea ecx, [esp + 0x48]
push ecx
push eax
push ebp
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esi, dword [esp + 0x10]
jne 0x4e4910
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x74], 0
jne 0x4e4756
jmp 0x4e4970
mov dword [esp + 0x14], 0xfffffff3
jmp 0x4e49f1
mov dword [esp + 0x14], 0xfffffffa
jmp 0x4e49f1
mov edi, dword [esp + 0x18]
mov ecx, dword [ebx + 0xc]
call fcn.00446ba0
test al, al
je 0x4e49f1
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 0xa
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call edx
cmp eax, 0xa
jne 0x4e49e9
cmp byte [esp + 0x20], 3
jne 0x4e49e9
mov eax, dword [edi]
mov edx, dword [eax + 4]
push 0x14
push 1
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
call edx
cmp eax, 0x14
jne 0x4e49e9
mov ecx, dword [ebx + 0xc]
call fcn.00446d30
test al, al
je 0x4e49d5
mov ecx, dword [ebx + 0xc]
call fcn.00446d40
push eax
lea eax, [esp + 0x58]
push 0x14
push eax
call fcn.0044af60
add esp, 0xc
mov ecx, dword [esp + 0x3c]
cmp dword [esp + 0x54], ecx
je 0x4e49f1
mov dword [esp + 0x14], 0xfffffff2
jmp 0x4e49f1
mov dword [esp + 0x14], 0xfffffffe
push ebp
call fcn.00487d62
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
je 0x4e4a0b
push eax
call fcn.00487d62
add esp, 4
mov ecx, dword [ebx + 0xc]
call fcn.00446b70
cmp eax, 2
jl 0x4e4a25
test esi, esi
je 0x4e4a25
push esi
call fcn.00487d62
add esp, 4
mov ebp, dword [esp + 0x30]
mov edx, dword [ebx]
mov esi, dword [esp + 0x34]
mov eax, dword [edx + 0x68]
push esi
mov ecx, ebx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], 0x10
jb 0x4e4a4c
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
jmp 0x4e4a50
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00444de0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x4f0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b596a
add esp, 0x4e4
ret 0x18