Function at 0x401cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426750
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x76dec4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
cmp byte [edi + 0x10], 0
je 0x4022dd
push 0x773ea4
mov dword [0x773ea4], 0xc
call fcn.0040ee00
add esp, 4
test eax, eax
jne 0x401d57
mov byte [edi + 0x10], 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
push dword [edi + 0x14]
lea ecx, [ebp - 0x10]
call fcn.00403e80
mov dword [ebp - 4], 0
push 0x5c
push dword [ebp - 0x10]
call fcn.00416f62
add esp, 8
or ebx, 0xffffffff
test eax, eax
je 0x401d88
sub eax, dword [ebp - 0x10]
cmp eax, ebx
jne 0x401e44
push 0x2f
push dword [ebp - 0x10]
call fcn.00416f62
add esp, 8
test eax, eax
je 0x401da5
sub eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
jne 0x401e44
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403a80
add esp, 4
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x1c], ecx
lea esi, [edx - 0x10]
cmp esi, ecx
je 0x401dfd
cmp dword [ecx + 0xc], 0
jl 0x401df1
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x401df1
push esi
call fcn.00404320
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov esi, eax
call fcn.00401940
lea eax, [esi + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x401dfd
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00404410
mov byte [ebp - 4], 0
mov eax, ebx
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x401e44
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x428854
jne 0x4022ef
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x42883c
jne 0x4022ef
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0x773ea4
push ecx
mov dword [ebp - 0x18], esp
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
cmp eax, 0x428854
jne 0x4022f8
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x401e76
cmp ecx, dword [esi]
jne 0x401e76
lock inc dword [eax]
jmp 0x401eab
mov eax, dword [ecx]
push 1
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
je 0x402302
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.00404390
mov esi, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [esi + 0x10]
mov dword [ecx], eax
call fcn.0040ec10
add esp, 0xc
test eax, eax
je 0x4021aa
push 0x5c
push dword [ebp - 0x10]
call fcn.00416f62
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 8
test esi, esi
je 0x401ee0
sub esi, ecx
cmp esi, 0xffffffff
jne 0x401f01
push 0x2f
push ecx
call fcn.00416f62
mov esi, eax
add esp, 8
test esi, esi
je 0x4021d5
sub esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x4021d5
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403cb0
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x24]
add esi, 0xfffffff0
push 0
push 0x773ea4
push ecx
mov ecx, dword [esi]
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x2c], esi
mov eax, dword [ecx]
cmp eax, 0x428854
jne 0x402307
cmp dword [esi + 0xc], 0
lea edx, [esi + 0xc]
jl 0x401f63
cmp ecx, dword [esi]
jne 0x401f63
mov eax, esi
lock inc dword [edx]
jmp 0x401f98
mov eax, dword [ecx]
push 1
push dword [esi + 4]
call dword [eax]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x402311
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.00404390
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x14]
add eax, 0x10
mov dword [ecx], eax
call fcn.0040ee30
add esp, 0xc
test eax, eax
jne 0x402118
push eax
push 0x773ea4
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x14], ecx
mov edx, dword [ecx]
mov eax, dword [edx]
cmp eax, 0x428854
jne 0x402316
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x18], eax
jl 0x401fec
cmp edx, dword [ecx]
jne 0x401fec
mov eax, ecx
mov ecx, dword [ebp - 0x18]
lock inc dword [ecx]
jmp 0x402029
mov eax, dword [edx]
push 1
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x402325
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
lea eax, [edx + 0x10]
mov ecx, dword [edx + 4]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x18]
push ecx
add eax, 0x10
push eax
call fcn.00404390
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
call fcn.0040ec10
add esp, 0xc
test eax, eax
jne 0x402118
push eax
push 0x80
push 3
push 0x773ea4
push eax
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x76e9ac], eax
cmp eax, 0xffffffff
je 0x402118
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4020bd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], edx
mov edx, dword [ecx]
cmp eax, 0x428854
jne 0x402334
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x2c]
cmp eax, 0x42883c
jne 0x40232a
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x402100
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x428854
jne 0x40233e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x42883c
jne 0x40233e
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x76e9ac]
cmp ecx, 0xffffffff
jne 0x402239
mov byte [edi + 0x10], 0
jmp 0x402283
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp - 0x1c]
mov byte [edi + 0x10], 0
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x402163
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x428854
jne 0x402345
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x42883c
jne 0x402345
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov byte [ebp - 4], 0
lea ecx, [esi + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4021d9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x428854
jne 0x40234e
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x42883c
jne 0x40234e
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call esi
jmp 0x4021df
push 0
push 0x80
push 3
push 0x773ea4
push 0
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [0x76e9ac], ecx
cmp ecx, 0xffffffff
jne 0x402239
mov byte [edi + 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4022dd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x428854
jne 0x402355
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x42883c
jne 0x402355
push 0
push dword [edx + 4]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x1c], 0
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x402246
push 0
lea eax, [ebp - 0x1c]
sub esi, edx
push eax
push esi
push dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402269
cmp dword [ebp - 0x1c], esi
je 0x40226d
mov byte [edi + 0x10], 0
push dword [0x76e9ac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x76e9ac], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4022dd
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x428854
jne 0x40236b
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, 0x42883c
jne 0x40236b
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
jmp 0x401e44
call dword [eax + 0x10]
mov ecx, eax
jmp 0x401e64
call fcn.004045f0
call dword [eax + 0x10]
mov ecx, eax
jmp 0x401f4f
call fcn.004045f0
mov ecx, edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x14]
mov edx, eax
jmp 0x401fd2
call fcn.004045f0
mov ecx, edx
call dword [ebp - 0x28]
jmp 0x4020bd
mov ecx, edx
call dword [ebp - 0x28]
jmp 0x4020bd
call edx
jmp 0x402100
mov ecx, edx
call edi
jmp 0x402163
call edx
jmp 0x4021d9
mov ecx, edx
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edx
call esi
jmp 0x4022dd