Function at 0x44e860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fe58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jne 0x44e8d8
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push edi
call ebx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x44ec6b
mov esi, eax
push 0
lea eax, [ebp - 0x30]
push eax
push 2
lea ecx, [ebp - 0x10]
push ecx
push esi
mov word [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, eax
sar ecx, 2
test ecx, ecx
je 0x44ed77
mov esi, dword [ebp - 0x2c]
add esi, esi
add esi, esi
mov edi, dword [esi + eax]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x44e954
cmp eax, dword [edi - 0x10]
jne 0x44e954
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x44e98c
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x44edd7
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0047312c
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov eax, dword [ecx]
mov edi, dword [eax + esi]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x44e9c4
cmp eax, dword [edi - 0x10]
jne 0x44e9c4
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x44e9fc
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x44edd7
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0047312c
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
mov edi, dword [eax + esi]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x44ea34
cmp eax, dword [edi - 0x10]
jne 0x44ea34
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x44ea6c
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x44edd7
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.0047312c
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x24], ebx
lea ebx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00416a10
mov ebx, eax
call fcn.00416a90
lea ebx, [ebp - 0x28]
call fcn.00416a10
mov ebx, eax
call fcn.00416a90
lea ebx, [ebp - 0x24]
call fcn.00416a10
mov ebx, eax
call fcn.00416a90
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x1c]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x44eddc
mov ebx, dword [ebp - 0x18]
mov ecx, esi
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44eafc
test dx, dx
je 0x44eaf8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44eafc
add eax, 4
add ecx, 4
test dx, dx
jne 0x44ead6
xor eax, eax
jmp 0x44eb01
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
je 0x44ec81
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x44eb5c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x44eb4c
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x44eb4c
call fcn.00403e10
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x44eb44
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
jmp 0x44eb59
push ebx
mov ebx, dword [ebx - 0xc]
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402e20
mov ebx, dword [ebp - 0x18]
push ebx
push str.__s__r_n
lea edi, [ebp - 0x14]
call fcn.004020e0
mov esi, dword [ebp - 0x14]
mov edi, dword [esi - 0xc]
add esp, 8
cmp dword [esi - 4], 1
jle 0x44eb86
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00401ff0
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [edi + edi]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44ec84
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x44ebbc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ebdc
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ebff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
push eax
push ecx
push str._s_s_r_n
lea edi, [ebp - 0x14]
call fcn.004020e0
mov esi, dword [ebp - 0x14]
mov edi, dword [esi - 0xc]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x44ecb5
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00401ff0
mov esi, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [edi + edi]
push edx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44ede6
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x44ecef
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ed12
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ed35
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ed58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov edx, dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
sub edx, eax
inc ecx
sar edx, 2
mov dword [ebp - 0x2c], ecx
cmp ecx, edx
jb 0x44e924
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x44ed9b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44edc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.004020d0
push 0x80004005
call fcn.004018d0
lea ecx, [ebp + 8]
push ecx
push ebx
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x44ee03
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x44ee23
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ee46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ee69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ee8c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44ec6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc