Function at 0x438a20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
dec eax
cmp eax, 6
ja case.default.0x438a35
jmp dword [eax*4 + 0x438dd4]
push 8
lea eax, [esp + 0x28]
push str..file
push eax
call dword [sym.imp.MSVCRT40.dll_strncpy]
mov esi, dword [esi + 8]
xor ebx, ebx
xor eax, eax
add esp, 0xc
mov ecx, dword [esi + 4]
mov word [esp + 0x30], 0xfffe
mov dword [esp + 0x2c], ecx
mov word [esp + 0x32], bx
mov byte [esp + 0x34], 0x67
mov edi, dword [esi]
or ecx, 0xffffffff
mov ebp, dword [sym.imp.MSVCRT40.dll_fwrite]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x38e38e39
mov edi, ecx
mul edi
shr edx, 2
inc dl
lea eax, [esp + 0x24]
mov byte [esp + 0x35], dl
mov edx, dword [0x498638]
push edx
push 1
push 0x12
push eax
call ebp
add esp, 0x10
cmp eax, 1
je 0x438ac1
push 0xb00
mov edx, str.c:cutc_srcP2coffemit.c
mov ecx, 0xe
call dword [0x498600]
mov ecx, dword [0x498638]
mov eax, dword [esi]
push ecx
lea edx, [edi + 1]
push 1
push edx
push eax
call ebp
add esp, 0x10
cmp eax, 1
je 0x438af0
push 0xb04
mov edx, str.c:cutc_srcP2coffemit.c
mov ecx, 0xe
call dword [0x498600]
mov eax, dword [esp + 0x35]
and eax, 0xff
lea eax, [eax + eax*8]
shl eax, 1
sub eax, edi
dec eax
mov ecx, eax
dec eax
test ecx, ecx
je 0x438c75
mov edi, dword [sym.imp.MSVCRT40.dll_fputc]
lea esi, [eax + 1]
mov edx, dword [0x498638]
push edx
push ebx
call edi
add esp, 8
dec esi
jne 0x438b15
mov dword [0x493f34], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov esi, dword [esi + 8]
push 1
lea ecx, [esp + 0x28]
mov edi, dword [esi + 4]
mov edx, dword [edi + 4]
call fcn.00438ea0
mov eax, dword [0x493edc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x438b61
mov ax, word [esi + 0x30]
mov word [esp + 0x30], ax
jmp 0x438b6e
mov cx, 0xfffe
sub cx, word [esi + 0x30]
mov word [esp + 0x30], cx
mov edx, dword [0x498638]
mov ebp, dword [sym.imp.MSVCRT40.dll_fwrite]
push edx
push 1
lea eax, [esp + 0x2c]
push 0x12
push eax
mov word [esp + 0x42], bx
mov byte [esp + 0x44], 3
mov byte [esp + 0x45], 1
call ebp
add esp, 0x10
cmp eax, 1
je 0x438bb2
push 0xb19
mov edx, str.c:cutc_srcP2coffemit.c
mov ecx, 0xe
call dword [0x498600]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov word [esp + 0x20], cx
mov edx, dword [esi + 0x18]
mov dword [esp + 0x10], edx
mov eax, dword [esi + 0x34]
cmp eax, 0xffff
mov word [esp + 0x14], ax
jb 0x438be6
mov word [esp + 0x14], 0xffff
mov ax, word [esi + 0x38]
mov word [esp + 0x16], ax
mov eax, dword [edi + 8]
test ah, 0x10
je 0x438c47
mov dword [esp + 0x18], ebx
mov cl, byte [edi + 0x14]
mov byte [esp + 0x1e], cl
mov dx, word [edi + 0x16]
cmp dx, bx
je 0x438c42
mov ecx, dword [0x493f00]
and edx, 0xffff
call fcn.00439690
cmp dword [0x493edc], ebx
je 0x438c31
mov edx, dword [eax]
mov ax, word [edx + 0x30]
mov word [esp + 0x1c], ax
jmp 0x438c47
mov ecx, dword [eax]
mov dx, 0xfffe
sub dx, word [ecx + 0x30]
mov word [esp + 0x1c], dx
jmp 0x438c47
mov word [esp + 0x1c], bx
mov eax, dword [0x498638]
lea ecx, [esp + 0x10]
push eax
push 1
push 0x12
push ecx
call ebp
add esp, 0x10
cmp eax, 1
je 0x438c75
push 0xb33
mov edx, str.c:cutc_srcP2coffemit.c
mov ecx, 0xe
call dword [0x498600]
mov dword [0x493f34], ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, dword [0x493d54]
mov esi, dword [esi + 8]
xor ebx, ebx
mov dword [0x493f34], esi
cmp eax, ebx
je 0x438ce7
cmp dword [esi], ebx
jne 0x438ce7
mov ecx, dword [0x493f10]
mov esi, dword [esi + 4]
call fcn.00439420
mov edx, dword [0x493f34]
mov ebx, dword [0x493f14]
add eax, 4
mov edi, esi
mov dword [edx + 4], eax
mov eax, dword [0x493f10]
mov dword [0x493f14], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov ecx, esi
inc edx
call fcn.00439230
mov esi, dword [0x493f34]
mov dword [0x493f14], ebx
mov ecx, dword [0x498638]
push ecx
push 1
push 0x12
push esi
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
cmp eax, 1
je case.0x438a35.5
push 0xb46
jmp 0x438da4
mov edx, dword [0x498638]
mov eax, dword [esi + 8]
push edx
push 1
push 0x12
push eax
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x438d41
push 0xb4d
mov edx, str.c:cutc_srcP2coffemit.c
mov ecx, 0xe
call dword [0x498600]
mov dword [0x493f34], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
push 8
lea ecx, [esp + 0x28]
push str._unused_
push ecx
call dword [sym.imp.MSVCRT40.dll_strncpy]
mov edx, dword [0x498638]
add esp, 0xc
lea eax, [esp + 0x24]
xor ebx, ebx
push edx
push 1
push 0x12
push eax
mov dword [esp + 0x3c], ebx
mov word [esp + 0x40], bx
mov word [esp + 0x42], bx
mov byte [esp + 0x44], 0xe
mov byte [esp + 0x45], bl
call dword [sym.imp.MSVCRT40.dll_fwrite]
add esp, 0x10
cmp eax, 1
je case.0x438a35.5
push 0xb60
mov edx, str.c:cutc_srcP2coffemit.c
mov ecx, 0xe
call dword [0x498600]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov edx, 0xb65
mov ecx, str.c:cutc_srcP2coffemit.c
call fcn.00484cb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret