Function at 0x41a610
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ebx, ecx
push edi
cmp byte [ebx + 0x4c], 0
mov edi, ebp
mov dword [esp + 0x14], ebp
je 0x41a862
cmp byte [esp + 0x18], 0
lea ecx, [ebx + 0x8e]
jne 0x41a63a
lea ecx, [ebx + 0x4e]
cmp byte [ebp], 0
mov dword [esp + 0xc], ecx
je 0x41a835
mov edx, accept
push esi
mov edi, edi
mov al, byte [edi]
test al, al
jle 0x41a7ff
cmp al, 0x40
jge 0x41a7ff
movzx eax, al
cmp byte [eax + ecx], 0
je 0x41a7ff
cmp ebp, edi
jae 0x41a733
mov eax, dword [ebx + 0x40]
mov esi, edi
sub esi, ebp
cmp esi, 0x7fffffff
cmova esi, edx
test eax, eax
je 0x41a69d
push eax
push esi
push 1
push ebp
call sub.MSVCR110.dll_fwrite
add esp, 0x10
jmp 0x41a724
mov eax, dword [ebx + 0xec]
add eax, esi
cmp eax, dword [ebx + 0xe8]
jle 0x41a6f8
lea edi, [eax + eax]
push edi
call fcn.005536a9
push dword [ebx + 0xec]
mov dword [esp + 0x24], eax
push dword [ebx + 0xd0]
push eax
call sub.MSVCR110.dll_memcpy
mov edx, dword [ebx + 0xd0]
lea ecx, [ebx + 0xd4]
add esp, 0x10
cmp edx, ecx
je 0x41a6e8
push edx
call sub.MSVCR110.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0xd0], eax
mov dword [ebx + 0xe8], edi
mov eax, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xd0]
add ecx, eax
push esi
lea edi, [ecx - 1]
add eax, esi
push ebp
push edi
mov dword [ebx + 0xec], eax
call sub.MSVCR110.dll_memcpy
mov byte [edi + esi], 0
mov edi, dword [esp + 0x24]
add esp, 0xc
add ebp, esi
mov edx, accept
cmp ebp, edi
jb 0x41a677
mov cl, byte [edi]
xor esi, esi
mov eax, 0x55d4c4
lea esp, [esp]
cmp byte [eax], cl
je 0x41a754
add eax, 0xc
inc esi
cmp eax, 0x55d500
jl 0x41a740
jmp 0x41a7f9
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x41a768
push eax
push 0x26
call sub.MSVCR110.dll_fputc
add esp, 8
jmp 0x41a77b
lea ecx, [ebx + 0xd0]
push 1
call fcn.0041a8e0
mov word [eax - 1], 0x26
mov ecx, dword [ebx + 0x40]
lea eax, [esi + esi*2]
mov edx, dword [eax*4 + 0x55d4c0]
mov eax, dword [eax*4 + 0x55d4bc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x41a7aa
push ecx
push edx
push 1
push eax
call sub.MSVCR110.dll_fwrite
add esp, 0x10
jmp 0x41a7d2
lea ecx, [ebx + 0xd0]
push edx
call fcn.0041a8e0
push dword [esp + 0x1c]
lea esi, [eax - 1]
push dword [esp + 0x1c]
push esi
call sub.MSVCR110.dll_memcpy
mov eax, dword [esp + 0x28]
add esp, 0xc
mov byte [esi + eax], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x41a7e6
push eax
push 0x3b
call sub.MSVCR110.dll_fputc
add esp, 8
jmp 0x41a7f9
lea ecx, [ebx + 0xd0]
push 1
call fcn.0041a8e0
dec eax
mov word [eax], 0x3b
inc ebp
mov edx, accept
mov ecx, dword [esp + 0x10]
inc edi
mov dword [esp + 0x18], edi
cmp byte [edi], 0
jne 0x41a650
cmp ebp, edi
jae 0x41a834
mov eax, dword [ebx + 0x40]
sub edi, ebp
cmp edi, 0x7fffffff
cmova edi, edx
test eax, eax
je 0x41a83c
push eax
push edi
push 1
push ebp
call sub.MSVCR110.dll_fwrite
add esp, 0x10
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
lea ecx, [ebx + 0xd0]
push edi
call fcn.0041a8e0
push edi
lea esi, [eax - 1]
push ebp
push esi
call sub.MSVCR110.dll_memcpy
add esp, 0xc
mov byte [esi + edi], 0
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
push ebp
call fcn.0041b9f0
pop edi
pop ebp
pop ebx
pop ecx
ret 8