Function at 0x44d070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ab3a8]
sub esp, 8
cmp dword [eax + 0x7c], 0
je 0x44d5d5
mov eax, dword [0x4ab3ac]
push esi
push edi
mov edi, dword [eax + 0x438]
test edi, edi
je 0x44d18c
cmp dword [edi + 0x224], 0
je 0x44d158
mov ecx, dword [edi + 0x20c]
mov edx, dword [edi + 0x208]
lea eax, [ecx + 1]
cmp eax, edx
jbe 0x44d0e5
lea eax, [edx + 0x400]
push eax
push dword [edi + 0x204]
call fcn.0047123a
mov ecx, dword [edi + 0x20c]
add esp, 8
add dword [edi + 0x208], 0x400
mov dword [edi + 0x204], eax
mov eax, dword [edi + 0x204]
mov byte [ecx + eax], 0
inc dword [edi + 0x20c]
mov eax, dword [edi + 0x220]
test eax, eax
je 0x44d158
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x44d158
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 8]
push 0
push ecx
push 2
lea ecx, [edi + 0x21c]
push ecx
push eax
call esi
push 0
lea eax, [ebp - 8]
push eax
push dword [edi + 0x20c]
push dword [edi + 0x204]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x220]
test eax, eax
je 0x44d16b
push eax
call fcn.00471245
add esp, 4
mov eax, dword [edi + 0x204]
test eax, eax
je 0x44d17e
push eax
call fcn.00471245
add esp, 4
push 0x228
push edi
call fcn.0046da1c
add esp, 8
mov eax, dword [0x4ab3a8]
mov esi, dword [eax + 0x7c]
mov eax, dword [esi + 0x488]
test eax, eax
je 0x44d1b1
push eax
call fcn.00471245
add esp, 4
mov dword [esi + 0x488], 0
mov esi, dword [0x4ab3a8]
mov eax, dword [esi + 0x8d0]
test eax, eax
je 0x44d1d4
push eax
call fcn.00471245
add esp, 4
mov dword [esi + 0x8d0], 0
mov eax, dword [0x4ab3a8]
mov esi, dword [eax + 0x480]
cmp word [esi], 0xffff
je 0x44d204
mov eax, dword [esi + 0x8e]
test eax, eax
je 0x44d1f8
push eax
call fcn.00471245
add esp, 4
add esi, 0x92
cmp word [esi], 0xffff
jne 0x44d1e5
mov esi, dword [0x4ab3a8]
mov eax, dword [esi + 0x480]
test eax, eax
je 0x44d227
push eax
call fcn.00471245
add esp, 4
mov dword [esi + 0x480], 0
mov esi, dword [0x4ab3a8]
mov eax, dword [esi + 0x8d4]
test eax, eax
je 0x44d24a
push eax
call fcn.00471245
add esp, 4
mov dword [esi + 0x8d4], 0
mov esi, dword [0x4ab3a8]
mov eax, dword [esi + 0x8cc]
test eax, eax
je 0x44d26d
push eax
call fcn.00471245
add esp, 4
mov dword [esi + 0x8cc], 0
mov esi, dword [0x4ab3ac]
mov eax, dword [esi + 0x420]
test eax, eax
je 0x44d290
push eax
call fcn.00471245
add esp, 4
mov dword [esi + 0x420], 0
mov eax, dword [0x4ab3ac]
mov dword [ebp - 8], eax
mov esi, dword [eax + 0x48c]
test esi, esi
je 0x44d2eb
xor edi, edi
cmp dword [eax + 0x490], edi
jle 0x44d2c9
nop dword [eax]
push dword [esi]
call fcn.00471245
mov eax, dword [ebp - 8]
lea esi, [esi + 0xa]
inc edi
add esp, 4
cmp edi, dword [eax + 0x490]
jl 0x44d2b0
mov eax, dword [0x4ab3ac]
push dword [eax + 0x48c]
call fcn.00471245
mov eax, dword [0x4ab3ac]
add esp, 4
mov dword [eax + 0x48c], 0
mov eax, dword [0x4ab3ac]
mov edi, dword [eax + 0x466]
test edi, edi
je 0x44d346
xor esi, esi
cmp dword [edi], esi
jle 0x44d32b
cmp esi, dword [edi + 4]
jge 0x44d326
mov eax, dword [edi + 8]
mov eax, dword [eax + esi*4]
mov dword [ebp - 8], eax
test eax, eax
je 0x44d326
push dword [eax]
call fcn.00471245
push 0x18
push dword [ebp - 8]
call fcn.0046da1c
add esp, 0xc
inc esi
cmp esi, dword [edi]
jl 0x44d300
mov eax, dword [edi + 8]
test eax, eax
je 0x44d33b
push eax
call fcn.00471245
add esp, 4
push 0xc
push edi
call fcn.0046da1c
add esp, 8
mov eax, dword [0x4ab3a8]
mov dword [eax + 0x78], 0
mov eax, dword [0x4ab3ac]
push dword [eax + 0x127c]
call fcn.00471245
mov eax, dword [0x4ab3ac]
add esp, 4
mov esi, dword [eax + 0x1294]
test esi, esi
je 0x44d3ce
mov eax, dword [esi]
test eax, eax
je 0x44d3be
mov ecx, dword [esi + 8]
sub ecx, eax
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x44d3a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d5d9
mov eax, edx
push ecx
push eax
call fcn.0046da1c
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
push esi
call fcn.0046da1c
mov eax, dword [0x4ab3ac]
add esp, 8
mov dword [eax + 0x1294], 0
mov eax, dword [0x4ab3ac]
mov esi, dword [eax + 0x1298]
test esi, esi
je 0x44d441
mov eax, dword [esi]
test eax, eax
je 0x44d431
mov ecx, dword [esi + 8]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x44d413
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44d5d9
mov eax, edx
push ecx
push eax
call fcn.0046da1c
mov dword [esi], 0
add esp, 8
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0xc
push esi
call fcn.0046da1c
mov eax, dword [0x4ab3ac]
add esp, 8
mov dword [eax + 0x1298], 0
mov eax, dword [0x4ab3ac]
mov edi, dword [eax + 0x129c]
mov dword [ebp - 4], edi
test edi, edi
je 0x44d4ea
mov esi, dword [edi]
test esi, esi
je 0x44d4da
mov eax, dword [edi + 4]
cmp esi, eax
je 0x44d483
mov edi, eax
mov ecx, esi
call fcn.00425b40
add esi, 0xc
cmp esi, edi
jne 0x44d470
mov edi, dword [ebp - 4]
mov esi, dword [edi]
mov ecx, dword [edi + 8]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
shl ecx, 2
cmp ecx, 0x1000
jb 0x44d4bc
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x44d5d9
mov esi, edx
push ecx
push esi
call fcn.0046da1c
mov dword [edi], 0
add esp, 8
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push 0xc
push edi
call fcn.0046da1c
mov eax, dword [0x4ab3ac]
add esp, 8
mov dword [eax + 0x129c], 0
mov esi, 0x534
mov eax, dword [0x4ab3ac]
mov dword [eax + 0x12a0], 0
mov eax, dword [0x4ab3ac]
nop dword [eax]
mov ecx, dword [esi + eax]
test ecx, ecx
je 0x44d533
push 0x10
push ecx
call fcn.0046da1c
mov eax, dword [0x4ab3ac]
add esp, 8
mov dword [esi + eax], 0
mov eax, dword [0x4ab3ac]
add esi, 4
cmp esi, 0x934
jl 0x44d510
mov esi, dword [eax + 0x462]
test esi, esi
je 0x44d564
push dword [esi + 8]
call fcn.00471245
push esi
mov esi, dword [esi]
call fcn.00471245
add esp, 8
test esi, esi
jne 0x44d548
mov eax, dword [0x4ab3ac]
mov ecx, dword [eax + 0xd40]
pop edi
pop esi
test ecx, ecx
je 0x44d59f
mov eax, dword [eax + 0xd44]
push ecx
call eax
mov eax, dword [0x4ab3ac]
add esp, 4
mov dword [eax + 0xd40], 0
mov eax, dword [0x4ab3ac]
mov dword [eax + 0xd44], 0
mov eax, dword [0x4ab3ac]
push dword [eax + 0xd34]
call fcn.00471245
mov eax, dword [0x4ab3a8]
push dword [eax + 0x7c]
call fcn.00471245
mov ecx, dword [0x4ab3a8]
xor edx, edx
mov eax, dword [0x4ab3ac]
add esp, 8
cmp eax, dword [ecx + 0x7c]
cmove eax, edx
mov dword [0x4ab3ac], eax
mov dword [ecx + 0x7c], edx
mov esp, ebp
pop ebp
ret
call fcn.0047265d
int3