Function at 0x41c880
Capabilities:
Write file on windows

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x6c
cmp dword [esp + 0x80], 1
jle 0x41cb83
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], 1
jmp 0x41c8ec
mov esi, 0x4abe55
mov ecx, 3
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x41cd20
add edx, 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x80], eax
jle 0x41cb6f
mov edx, dword [esp + 0x20]
lea eax, [edx*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
mov ebx, dword [eax + edx*4]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41c8b1
cmp dword [esp + 0x8c], ebp
jbe 0x41c949
mov eax, ebp
mov edx, dword [esp + 0x8c]
shl eax, 5
add eax, dword [esp + 0x88]
lea esi, [esi]
cmp byte [eax + 4], 0
mov ecx, eax
jne 0x41c93f
mov edi, dword [eax + 8]
test edi, edi
je 0x41c980
add ebp, 1
add eax, 0x20
cmp edx, ebp
jne 0x41c930
mov dword [esp], 2
call dword [0x4a20fc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Unexpected_argument__s._n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0
mov edi, dword [eax + 0xc]
add ebp, 1
mov esi, ebx
cmp edi, 5
ja case.default.0x41c999
jmp dword [edi*4 + 0x4ac06c]
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x80]
jge 0x41d15a
lea eax, [esp + 0x58]
mov dword [esp + 4], 0x50
mov dword [esp + 8], eax
mov dword [esp], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.00427280
mov ecx, dword [esp + 0x24]
mov edi, edx
or edi, eax
jne 0x41cf23
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], 1
lea eax, [eax + edi + 4]
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], eax
mov esi, dword [eax]
xor eax, eax
mov dword [esp + 0x34], ebp
mov ebp, eax
lea ecx, [esi + ebp]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
movzx eax, byte [ecx]
test al, al
je 0x41d020
cmp al, 0x2c
je 0x41d020
mov ebx, ebp
jmp 0x41ca52
mov ebx, eax
movzx edx, byte [esi + ebx + 1]
lea eax, [ebx + 1]
lea edi, [esi + eax]
test dl, dl
je 0x41ca66
cmp dl, 0x2c
jne 0x41ca50
cmp eax, ebp
je 0x41d020
sub eax, ebp
lea edx, [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0042c0e0
or edx, eax
jne 0x41cfd7
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
cmp eax, 0
ja 0x41d050
add dword [esp + 0x24], 1
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov dword [edx + ebp*4 - 4], ecx
cmp byte [edi], 0
je 0x41cee0
mov eax, dword [esp + 0x30]
lea eax, [eax + eax*4]
shl eax, 2
cmp ebp, eax
je 0x41cde2
lea ebp, [ebx + 2]
jmp 0x41ca23
mov dword [esp], esi
mov dword [esp + 0x30], ecx
call sub.msvcrt.dll_strlen
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0042bc40
mov ecx, dword [esp + 0x30]
or edx, eax
jne 0x41cc37
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
lea eax, [edi + 1]
lea edx, [edi + 2]
test esi, esi
cmovne eax, edx
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x41cb4b
mov dword [eax], 1
mov ebx, dword [ecx + 0x1c]
mov eax, 0
test ebx, ebx
cmovne eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x80], eax
jg 0x41c8ec
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], 1
test ecx, ecx
je 0x41ced3
cmp ebp, dword [esp + 0x8c]
jae 0x41d188
mov eax, dword [esp + 0x8c]
mov ebx, ebp
mov edi, dword [fcn.004a1b90]
shl ebx, 5
add ebx, dword [esp + 0x88]
shl eax, 5
add eax, dword [esp + 0x88]
mov esi, eax
xor eax, eax
mov esi, esi
lea edi, [edi]
cmp byte [ebx + 4], 0
jne 0x41cbd1
mov edx, dword [ebx + 8]
test edx, edx
je 0x41d09a
add ebx, 0x20
cmp ebx, esi
jne 0x41cbc0
xor eax, 1
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov dword [esp + 0x30], ecx
call sub.msvcrt.dll_strlen
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0042bff0
mov ecx, dword [esp + 0x30]
or edx, eax
je 0x41cb27
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x41cced
mov edi, 0x4abe44
mov ebx, str._for_option_
mov dword [esp + 0x20], ecx
mov dword [esp], 2
call dword [0x4a20fc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], str.Error:_Invalid_value_s_s_s:__s_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov dword [esp + 0x30], ecx
call sub.msvcrt.dll_strlen
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 0x14]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp], esi
call fcn.0042c0e0
mov ecx, dword [esp + 0x30]
or edx, eax
je 0x41cb27
mov ecx, dword [esp + 0x24]
mov edi, 0x4abe44
mov ebx, str._for_option_
test ecx, ecx
jne 0x41cc4d
mov ecx, 0x4abe54
mov edi, ecx
mov ebx, ecx
jmp 0x41cc4d
mov eax, dword [ecx + 0x14]
mov dword [eax], esi
jmp 0x41cb27
add dword [esp + 0x20], 1
mov eax, dword [ecx + 0x14]
mov dword [eax], 1
jmp 0x41cb3e
cmp byte [ebx], 0x2d
jne 0x41c90d
movzx edx, byte [ebx + 1]
test dl, dl
je 0x41c90d
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x41ceb2
lea eax, [ebx + 2]
mov ecx, ebx
mov esi, dword [esp + 0x88]
mov ebx, edx
xor edi, edi
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x38], ebp
jmp 0x41cdab
mov eax, dword [esi + 8]
test eax, eax
je 0x41cd9d
cmp word [ecx], 0x2d2d
jne 0x41cd9d
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 0x8c], edx
call sub.msvcrt.dll_strcmp
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x8c]
test eax, eax
je 0x41cdbf
add edi, 1
add esi, 0x20
cmp edx, edi
je 0x41ceb0
movzx eax, byte [esi + 4]
mov ebp, esi
cmp bl, al
jne 0x41cd65
test al, al
je 0x41cd65
cmp byte [ecx + 2], 0
jne 0x41cd65
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0xc]
mov ebx, ecx
mov ecx, ebp
mov ebp, dword [esp + 0x38]
add eax, 1
test edi, edi
jne 0x41cefe
mov dword [esp + 0x20], eax
jmp 0x41cd0f
add dword [esp + 0x30], 1
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], ecx
lea edi, [eax + eax*4]
mov dword [esp + 4], edx
mov eax, edi
mov dword [esp], 0
shl eax, 4
mov dword [esp + 0xc], eax
sub eax, 0x50
mov dword [esp + 8], eax
call fcn.00427410
mov ecx, edx
or ecx, eax
jne 0x41d0c4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x58], eax
jmp 0x41cad1
mov dword [esp + 0x24], ecx
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4abfe0
mov dword [esp + 4], str.__s__Unsupported_spec_type:__d
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4abefc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add dword [esp + 0x20], 1
mov ecx, dword [esp + 0x24]
jmp 0x41cb3e
mov ebx, ecx
mov dword [esp], 2
call dword [0x4a20fc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Unknown_option__s._n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esp + 0x2c]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
add dword [esp + 0x20], 2
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
mov dword [eax + 4], edi
jmp 0x41cb3e
cmp dword [esp + 0x80], eax
jle 0x41d195
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
mov esi, dword [eax + esi + 4]
jmp 0x41c990
mov dword [esp + 4], edx
mov esi, eax
mov dword [esp], eax
call fcn.0041d490
mov ecx, dword [esp + 0x20]
mov ebx, dword [fcn.004a1b90]
mov edi, eax
mov eax, dword [esp + 0x84]
mov ebp, dword [eax + ecx*4]
mov dword [esp], 2
call ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0x14
mov dword [esp + 8], 0x4abea2
mov dword [esp + 4], str.__s__Error_while_allocating__Iu_entries_of_uint_list_data_for_option___s_:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4abefc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, dword [esp + 0x58]
test eax, eax
je 0x41c96a
lea edi, [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 4], edi
call fcn.0041d440
jmp 0x41c96a
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x20]
mov ebx, dword [fcn.004a1b90]
mov esi, dword [eax]
mov eax, dword [esp + 0x84]
mov edi, dword [eax + edi*4]
mov dword [esp], 2
call ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x4abea2
mov dword [esp + 4], str.__s__Invalid_value_for_option__s:__s
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41cf7c
mov dword [esp], 2
mov ebx, dword [fcn.004a1b90]
call ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x4abea2
mov dword [esp + 4], str.__s__Empty_list_entry_at_character__Iu
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41cf7c
mov edi, eax
mov dword [esp + 0x20], ecx
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x4abea2
mov dword [esp + 4], str.__s__List_entry_value_at_character__Iu_too_large:__I64u____lu
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41cf7c
mov ebp, dword [ebx + 0x18]
mov dword [esp], 2
call edi
mov dword [esp + 4], str.Error:_Missing_parameter___s_._n
mov dword [esp + 8], ebp
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x41cbd1
mov dword [esp + 4], edx
mov esi, edi
mov dword [esp], eax
shl esi, 2
mov dword [esp + 0x20], eax
mov ebx, esi
call fcn.0041d490
mov esi, dword [fcn.004a1b90]
mov dword [esp], 2
mov edi, eax
call esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], ebx
sub ebx, 0x14
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x4abea2
mov dword [esp + 4], str.__s__Error_while_expanding_uint_list_data_from__Iu_to__Iu_entries:__lu___s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4abefc
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x41cfb6
mov dword [esp], 2
call dword [0x4a20fc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Expected_value_for_option__s._n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp + 0x2c], 0
jmp 0x41ced3
mov dword [esp + 0x2c], 1
jmp 0x41ced3
mov dword [esp], 2
call dword [0x4a20fc]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Error:_Expected_value_for_option__s._n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41ced3