Function at 0x419e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov edx, dword [ebp + 0xc]
mov al, byte [edx]
mov dword [ebp - 0xcc], 0
test al, al
je 0x419e86
mov esi, edx
cmp al, 0x25
je 0x419eac
mov esi, edx
inc esi
mov al, byte [esi]
cmp al, 0x25
je 0x419e62
test al, al
jne 0x419e57
cmp esi, edx
je 0x419e7c
mov eax, dword [ebp + 8]
push eax
mov eax, esi
sub eax, edx
push eax
push 1
push edx
call sub.msvcrt.dll_fwrite
mov al, byte [esi]
add esp, 0x10
cmp al, 0x25
je 0x419eac
mov edx, esi
test al, al
jne 0x419e4f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x419e96
mov eax, dword [0x5da338]
test eax, eax
jne 0x419ee4
mov eax, dword [ebp - 0xcc]
test eax, eax
jne 0x41a722
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esi + 1]
add esi, 2
mov al, byte [eax]
sub eax, 0x25
cmp al, 0x51
jbe 0x419ed8
push ecx
mov edx, dword [ebp + 8]
movsx eax, byte [esi - 1]
push eax
push str.___c
push edx
call fcn.00419db0
mov al, byte [esi]
add esp, 0x10
mov edx, esi
jmp 0x419e82
and eax, 0xff
jmp dword [eax*4 + 0x505a74]
mov dword [0x5da314], 0
jmp 0x419e96
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0xa4]
mov edx, dword [eax + 4]
push edx
mov edi, dword [eax]
push edi
push 0x5059b0
push ebx
call fcn.00419e10
mov dl, byte [ebp - 0xa4]
add esp, 0x10
mov eax, ebx
cmp dl, 0x30
jne 0x419f23
inc eax
mov dl, byte [eax]
cmp dl, 0x30
je 0x419f1b
cmp dl, 1
mov ebx, dword [ebp + 0x10]
sbb eax, 0
mov edx, dword [ebp + 8]
add ebx, 8
push ecx
mov dword [ebp + 0x10], ebx
push ecx
push edx
push eax
call sub.msvcrt.dll_fputs
mov al, byte [esi]
add esp, 0x10
mov edx, esi
jmp 0x419e82
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
dec eax
mov dword [edx + 4], eax
test eax, eax
js 0x41a709
mov eax, dword [edx]
mov byte [eax], 0x25
inc eax
mov dword [edx], eax
mov edx, esi
mov al, byte [esi]
jmp 0x419e82
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
add edi, 4
mov ebx, dword [eax]
mov edx, dword [ebx + 0xb4]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0xc8], edx
push eax
mov eax, dword [ebp + 8]
push 0x5059c8
push eax
call fcn.00419db0
mov eax, dword [ebp - 0xc8]
add esp, 0x10
test eax, eax
je 0x419fc1
mov ecx, dword [ebp - 0xc8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
cmp eax, 5
je 0x41a68b
cmp eax, 2
je 0x41a649
mov al, byte [esi]
mov edx, esi
mov dword [ebp + 0x10], edi
jmp 0x419e82
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
add ebx, 4
mov eax, dword [edx]
test eax, eax
je 0x41a6f8
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x419ff4
test byte [ecx + 0x2c], 1
je 0x41a639
push edx
mov eax, dword [eax]
push eax
push 0x5059c8
mov eax, dword [ebp + 8]
push eax
call fcn.00419db0
mov al, byte [esi]
add esp, 0x10
mov edx, esi
mov dword [ebp + 0x10], ebx
jmp 0x419e82
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
mov ebx, dword [eax]
add eax, 8
mov edx, dword [edx + 4]
add edi, 0x10
mov dword [ebp - 0xc4], edx
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ebp + 0x10], edi
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xbc], ecx
test ebx, ebx
je 0x41a4ab
sub esp, 0xc
push ebx
call fcn.004399b0
add esp, 0x10
test eax, eax
je 0x41a624
sub esp, 0xc
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 4]
push 0
push ecx
push edx
lea edx, [ebp - 0x14]
push edx
mov edi, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xc4]
push edx
push edi
push ecx
mov edx, dword [ebx + 0x80]
push edx
push ebx
call dword [eax + 0x128]
add esp, 0x30
test eax, eax
je 0x41a4ab
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a72c
lea ecx, [esi - 1]
mov dword [ebp - 0xd0], ecx
mov al, byte [esi - 1]
cmp al, 0x43
je 0x41a562
cmp al, 0x48
je 0x41a562
mov edi, dword [ebp + 8]
push eax
push ebx
push 0x505a41
push edi
mov edi, 1
call fcn.0041a780
add esp, 0x10
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41a0fa
mov ecx, dword [ebp + 8]
push ebx
push eax
push 0x505a45
push ecx
call fcn.00419db0
add esp, 0x10
mov ecx, dword [ebp - 0xd0]
mov dl, byte [ecx]
cmp dl, 0x48
setne al
xor ebx, ebx
mov bl, al
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41a11c
cmp dl, 0x47
je 0x41a6e0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41a4c3
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x41a4c3
mov eax, 0x505a4c
test ebx, ebx
jne 0x41a140
mov eax, 0x505a4d
push eax
mov eax, dword [ebp + 8]
push edx
push str._u_s
push eax
call fcn.00419db0
add esp, 0x10
test ebx, ebx
jne 0x41a4ec
jmp 0x41a4c3
call fcn.0042f960
sub esp, 0xc
push eax
call fcn.00430e50
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
push 0x5059c8
push ecx
call fcn.00419db0
mov al, byte [esi]
add esp, 0x10
mov edx, esi
jmp 0x419e82
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
add ebx, 8
mov edi, dword [ecx + 4]
push edi
mov ecx, dword [ecx]
push ecx
push 0x5059b0
jmp 0x419ffd
mov edx, dword [ebp + 0x10]
mov edi, dword [edx + 4]
push edi
mov ebx, dword [edx]
push ebx
lea ebx, [ebp - 0xa4]
push 0x5059b0
push ebx
call fcn.00419e10
mov al, byte [ebp - 0xa4]
add esp, 0x10
mov edi, ebx
cmp al, 0x30
jne 0x41a1d7
inc edi
mov al, byte [edi]
cmp al, 0x30
je 0x41a1d0
cmp al, 1
sbb edi, 0
sub esp, 0xc
push edi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov ebx, eax
cmp eax, 7
jle 0x41a1ff
jmp 0x41a223
mov eax, dword [ecx]
inc ebx
mov byte [eax], 0x20
inc eax
mov dword [ecx], eax
cmp ebx, 8
je 0x41a223
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
test eax, eax
jns 0x41a1f1
mov edx, dword [ebp + 8]
inc ebx
push ecx
push ecx
push edx
push 0x20
call sub.msvcrt.dll__flsbuf
add esp, 0x10
cmp ebx, 8
jne 0x41a1ff
mov eax, dword [ebp + 0x10]
add eax, 8
mov dword [ebp + 0x10], eax
push eax
mov eax, dword [ebp + 8]
push edi
push str.0x_s
push eax
call fcn.00419db0
mov al, byte [esi]
add esp, 0x10
mov edx, esi
jmp 0x419e82
mov dword [0x5da314], 0
mov edx, esi
mov al, byte [esi]
jmp 0x419e82
push ecx
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ecx]
add ebx, 4
push edx
push 0x505a61
jmp 0x419ffd
mov al, byte [esi]
cmp al, 0x64
je 0x41a6b1
cmp al, 0x75
jne case.0x419edd.0
mov ecx, dword [ebp + 0x10]
push eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [ecx]
add ebx, 4
push eax
push 0x505a6b
mov edi, dword [ebp + 8]
inc esi
push edi
call fcn.00419db0
mov al, byte [esi]
add esp, 0x10
mov edx, esi
mov dword [ebp + 0x10], ebx
jmp 0x419e82
push eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax]
add ebx, 4
push eax
push 0x505a5e
jmp 0x419ffd
mov edx, dword [ebp + 0x10]
push eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [edx]
add ebx, 4
push edi
push 0x5059c8
jmp 0x419ffd
push eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
mov eax, dword [eax]
add ebx, 4
push eax
push 0x505a64
jmp 0x419ffd
mov ebx, dword [0x5da390]
push edi
push ebx
jmp 0x41a172
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
add ebx, 4
mov edx, dword [ecx]
push eax
push eax
mov eax, dword [edx + 0x18]
mov eax, dword [eax + 0x20]
push eax
mov eax, dword [edx + 0x14]
push eax
mov eax, dword [edx + 0x10]
push eax
mov eax, dword [edx]
mov eax, dword [eax]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp + 8]
push str._s0x_v__type__s_
push eax
call fcn.0041a780
mov al, byte [esi]
add esp, 0x20
mov edx, esi
mov dword [ebp + 0x10], ebx
jmp 0x419e82
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x10]
add ebx, 4
mov eax, dword [edx]
test eax, eax
je 0x41a6c8
mov edx, dword [eax + 8]
test edx, edx
je 0x41a54a
mov ecx, dword [eax + 4]
push ecx
push edx
push str._s:_u
jmp 0x419ffd
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add eax, 4
mov ebx, dword [edx]
mov dword [ebp - 0xb4], eax
test ebx, ebx
je 0x41a486
cmp byte [ebx], 0
je 0x41a486
mov eax, dword [0x5da3b0]
test eax, eax
je 0x41a556
mov edi, dword [0x5da4b4]
push eax
push 3
push ebx
push edi
call fcn.00430070
add esp, 0x10
mov edi, eax
test eax, eax
je 0x41a556
mov edx, dword [ebp + 8]
push ecx
push eax
push 0x5059c8
push edx
call fcn.00419db0
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0xb4]
mov al, byte [esi]
add esp, 0x10
mov dword [ebp + 0x10], edx
mov edx, esi
jmp 0x419e82
mov al, byte [esi]
mov edx, esi
mov dword [ebp - 0xcc], 1
jmp 0x419e82
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x10]
add edi, 4
mov ebx, dword [ecx]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x94]
test eax, eax
je 0x41a41d
test byte [eax + 0x2c], 1
je 0x41a60a
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0xc]
push edx
push 0x5059c8
push eax
call fcn.00419db0
mov eax, dword [ebx + 0x10]
add esp, 0x10
mov eax, dword [eax + 0x94]
test eax, eax
je 0x41a44a
test byte [eax + 0x2c], 1
je 0x419fc1
push eax
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0xc]
push eax
call fcn.004d7600
add esp, 0x10
test eax, eax
je 0x419fc1
push eax
mov eax, dword [ebx + 8]
push eax
push 0x5059e9
mov ebx, dword [ebp + 8]
push ebx
call fcn.00419db0
mov al, byte [esi]
add esp, 0x10
mov edx, esi
mov dword [ebp + 0x10], edi
jmp 0x419e82
push eax
push eax
push str.no_symbol
mov eax, dword [ebp + 8]
push eax
call fcn.00419db0
mov al, byte [esi]
mov ecx, dword [ebp - 0xb4]
add esp, 0x10
mov edx, esi
mov dword [ebp + 0x10], ecx
jmp 0x419e82
mov ecx, dword [ebp + 8]
push edi
push ebx
push 0x505a41
push ecx
mov edi, 1
call fcn.0041a780
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp - 0xc0]
mov edx, dword [ebp - 0xbc]
push edx
push eax
mov eax, dword [ebp - 0xc4]
push eax
mov eax, dword [ebp + 8]
push str.__A0x_v_
push eax
call fcn.0041a780
add esp, 0x20
test edi, edi
je 0x41a541
mov eax, dword [0x5d4608]
mov dword [0x5d4618], 0
test eax, eax
je 0x41a519
sub esp, 0xc
push eax
call sub.msvcrt.dll_free
mov dword [0x5d4608], 0
add esp, 0x10
mov eax, dword [0x5d45f8]
test eax, eax
je 0x41a541
sub esp, 0xc
push eax
call sub.msvcrt.dll_free
mov dword [0x5d45f8], 0
add esp, 0x10
mov al, byte [esi]
mov edx, esi
jmp 0x419e82
mov al, byte [esi]
mov edx, esi
jmp 0x419e82
mov al, byte [esi]
mov edx, esi
mov dword [ebp + 0x10], ebx
jmp 0x419e82
push eax
push ebx
push 0x5059c8
jmp 0x41a48d
mov eax, dword [0x5d4618]
test eax, eax
je 0x41a587
mov edx, dword [0x5d4608]
test edx, edx
je 0x41a587
mov edi, dword [0x5d45f8]
test edi, edi
je 0x41a587
cmp ebx, eax
je 0x41a73a
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 8]
push ebx
push str._B:_In_function___T:_n
push eax
call fcn.0041a780
mov eax, dword [0x5d4608]
add esp, 0x10
mov dword [0x5d4618], ebx
test eax, eax
je 0x41a5b8
sub esp, 0xc
push eax
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, dword [ebp - 0x14]
mov dword [0x5d4608], 0
test eax, eax
je 0x41a5da
sub esp, 0xc
push eax
call fcn.004d0b10
add esp, 0x10
mov dword [0x5d4608], eax
mov eax, dword [0x5d45f8]
test eax, eax
je 0x41a5ef
sub esp, 0xc
push eax
call sub.msvcrt.dll_free
add esp, 0x10
sub esp, 0xc
mov eax, dword [ebp - 0x18]
xor edi, edi
push eax
call fcn.004d0b10
add esp, 0x10
mov dword [0x5d45f8], eax
jmp 0x41a0e0
push edx
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push 0x5059e4
push eax
call fcn.00419db0
add esp, 0x10
jmp 0x41a41d
push ecx
push ecx
push ebx
push 0x505a08
call fcn.0041a830
add esp, 0x10
jmp 0x41a05f
mov edi, dword [eax]
push edi
mov ecx, dword [ecx]
push ecx
push 0x5059dd
jmp 0x419ffd
mov eax, dword [ebx + 0xb4]
mov eax, dword [eax + 4]
cmp dword [eax + 4], 2
jne 0x419fc1
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x419fc1
mov eax, dword [eax + 0x20]
test eax, eax
je 0x419fc1
mov eax, dword [eax]
test eax, eax
je 0x419fc1
push edx
push eax
push 0x5059cb
jmp 0x41a46e
mov eax, dword [ebx + 0xac]
mov ecx, dword [eax + 0x8c]
test ecx, ecx
je 0x419fc1
test byte [ebx + 0x17], 2
jne 0x419fc1
mov eax, dword [eax + 0x84]
jmp 0x41a677
mov edx, dword [ebp + 0x10]
push eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [edx]
add ebx, 4
push eax
push 0x505a67
jmp 0x41a296
call fcn.00404380
mov dword [ebp - 0x38], eax
mov eax, dword [0x4ee00c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
jmp 0x41a355
push edx
push eax
mov eax, dword [ebp + 8]
push 0x505a49
push eax
call fcn.0041a780
add esp, 0x10
jmp 0x41a153
push eax
mov eax, dword [0x5da390]
push eax
push str._s_generated
jmp 0x419ffd
push eax
push eax
mov eax, dword [ebp + 8]
push eax
push 0x25
call sub.msvcrt.dll__flsbuf
mov al, byte [esi]
add esp, 0x10
mov edx, esi
jmp 0x419e82
sub esp, 0xc
push 1
call fcn.004d6fb0
lea eax, [esi - 1]
mov dword [ebp - 0xd0], eax
jmp 0x41a0c8
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41a755
push ecx
push ecx
push eax
push edx
call fcn.004d7600
add esp, 0x10
test eax, eax
jne 0x41a587
mov eax, dword [ebp - 0x18]
push edx
push edx
push eax
mov eax, dword [0x5d45f8]
xor edi, edi
push eax
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
je 0x41a0e0
jmp 0x41a587