Function at 0x4134e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x4bdc98]
push ebx
push esi
xor eax, ebp
mov esi, ecx
mov ecx, dword [esi + 8]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x410], eax
mov eax, dword [ebp + 0x10]
push edi
je 0x413717
cmp dword [eax + 0x18], 8
jb 0x41351a
mov eax, dword [eax + 4]
jmp 0x41351d
add eax, 4
push 0x4a303c
push eax
call fcn.00426230
add esp, 8
cmp eax, ebx
mov dword [esi + 0x34], eax
je 0x413717
xor eax, eax
mov word [esp + 0x10], bx
mov ecx, 0xff
lea edi, [esp + 0x12]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x14]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x54], bl
jne 0x413630
nop
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 8]
push 0x400
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], ebx
call fcn.004179e0
cmp eax, 0xffffffff
je 0x413708
cmp eax, 2
je 0x41366d
cmp eax, 5
je 0x413698
mov eax, dword [esp + 0xc]
cmp eax, ebx
jle 0x413615
cmp byte [esi + 0x55], bl
je 0x4135c4
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
mov byte [esi + 0x55], bl
mov dword [esi + 0x58], ebx
je 0x4135c4
mov eax, dword [ecx]
push ebx
push ebx
call dword [eax + 0x14]
mov ecx, dword [esi + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x54], bl
jne 0x4136cb
mov edx, dword [esi + 0x34]
mov eax, dword [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
call dword [sym.imp.MSVCR71.dll_fwrite]
mov edx, dword [esp + 0x1c]
add esp, 0x10
cmp eax, edx
jne 0x413708
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x41361b
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x41361b
mov edi, dword [ecx]
push edx
push eax
call dword [edi + 8]
jmp 0x41361b
je 0x413731
mov edx, dword [esi + 0x14]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 0x54], bl
je 0x413560
mov ecx, esi
call fcn.004129c0
mov ecx, dword [esi + 8]
call fcn.00417510
push ebx
mov ecx, esi
call fcn.00412e60
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, ebp
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.004129c0
mov ecx, dword [esi + 8]
call fcn.00417510
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, ebp
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.004129c0
mov ecx, dword [esi + 8]
call fcn.00417510
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, ebp
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.004129c0
mov ecx, dword [esi + 8]
call fcn.00417510
push ebx
mov ecx, esi
call fcn.00412e60
mov ecx, dword [esi + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, ebp
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.004129c0
mov ecx, dword [esi + 8]
call fcn.00417510
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x408]
xor ecx, ebp
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc
mov ecx, esi
call fcn.004129c0
mov ecx, dword [esp + 0x414]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00491e29
mov esp, ebp
pop ebp
ret 0xc