Function at 0x418060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x38], esi
push 0
push 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.0040f750
mov edi, eax
mov dword [ebp - 0x30], edi
push 0xffffffffffffffff
mov dword [ebp - 4], 0
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4182d8
mov ebx, dword [ebp - 0x2c]
jmp 0x4180d3
mov edi, dword [ebp - 0x30]
push 0xffffffffffffffff
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x30]
lea ecx, [esi + 0x2c]
cmp eax, ecx
je 0x4180fc
mov eax, edi
mov edi, dword [ecx]
mov dword [ecx], eax
mov eax, ebx
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], ebx
mov dword [ecx + 4], eax
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
je 0x4182c0
cmp dword [esi + 0x28], 0
lea edi, [esi + 0x28]
jne 0x418183
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x418121
mov eax, dword [eax]
push 0x4858c0
push eax
push edi
call fcn.00438778
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x41817a
push 2
push 0
push eax
call fcn.00439909
push dword [edi]
call fcn.0043961b
push 0
push 0
push dword [edi]
mov esi, eax
call fcn.00439909
add esp, 0x1c
test esi, esi
jne 0x418177
push dword [edi]
lea eax, [ebp - 0x34]
mov word [ebp - 0x34], 0xfeff
push 2
push 1
push eax
mov byte [ebp - 0x32], 0
call fcn.00439d90
add esp, 0x10
mov esi, dword [ebp - 0x38]
cmp dword [edi], 0
je 0x4180d0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
nop dword [eax + eax]
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov eax, dword [esi]
add eax, 8
cmp ecx, eax
je 0x4181c5
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4181b9
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407590
mov esi, dword [esi]
dec ebx
mov dword [ebp - 0x2c], ebx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x1c]
cmp ecx, 8
jb 0x418214
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41820a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41836f
mov eax, edx
push ecx
push eax
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [esi + 0x18], 0
push 0x20
mov dword [esi + 0x1c], 7
push esi
mov word [esi + 8], ax
call fcn.0042297a
mov ecx, dword [edi]
lea eax, [ebp - 0x28]
add esp, 8
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
test ecx, ecx
je 0x41825a
push eax
push ecx
call fcn.004185d0
push 0x4858b8
push dword [edi]
call fcn.004185d0
add esp, 0x10
test ebx, ebx
jne 0x4181a0
mov eax, dword [edi]
test eax, eax
je 0x418273
push eax
call fcn.00438620
add esp, 4
mov dword [edi], ebx
mov esi, dword [ebp - 0x38]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x30]
cmp edx, 8
jb 0x4180d3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4182b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41836f
push edx
push ecx
call fcn.0042297a
add esp, 8
jmp 0x4180d0
cmp dword [esi], 0
jne 0x4182d8
push 0xffffffffffffffff
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4180d3
mov esi, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp esi, edi
je 0x418346
mov ebx, dword [ebp - 0x30]
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi]
cmp ecx, 8
jb 0x41831e
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x418314
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41836f
mov eax, edx
push ecx
push eax
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [esi + 0x18], 0
push 0x20
mov dword [esi + 0x1c], 7
push esi
mov word [esi + 8], ax
call fcn.0042297a
add esp, 8
mov esi, edi
cmp edi, ebx
jne 0x4182e6
mov edi, dword [ebp - 0x30]
push 0x20
push edi
call fcn.0042297a
add esp, 8
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 - 0x10]
xor ecx, ebp
call fcn.00422308
mov esp, ebp
pop ebp
ret
call fcn.004309e5
int3