Function at 0x414c3d
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x43fad9
call fcn.0043ef32
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
push 0x18
lea ecx, [ebp - 0x60]
call fcn.0040d7e9
mov dword [ebp - 4], ebx
mov ecx, dword [0x4c4254]
mov eax, dword [ecx + 0x18]
cmp dword [ecx + 0xc], ebx
je 0x414c7a
add eax, 0x18
mov edx, dword [eax + 0x70]
mov eax, dword [eax + 0x74]
jmp 0x414c86
mov edx, dword [eax + 0x98]
mov eax, dword [eax + 0x9c]
cmp edx, ebx
je 0x414fe0
cmp eax, ebx
je 0x414fe0
lea eax, [ebp - 0x20]
push eax
push edx
call fcn.00415125
test eax, eax
je 0x414fda
mov eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
mov cx, word [eax + 0xe]
add cx, word [eax + 0xc]
movzx eax, cx
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov ax, word [ebp - 0x38]
cmp word [ebp - 0x18], ax
jae 0x414e45
mov edi, dword [esi]
mov dword [ebp - 0x34], edi
mov eax, dword [esi + 4]
test eax, eax
jns 0x414df7
and eax, 0x7fffffff
add eax, dword [ebp - 0x20]
lea edi, [eax + 0x10]
mov dword [ebp - 0x4c], edi
mov cx, word [eax + 0xe]
add cx, word [eax + 0xc]
movzx eax, cx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], ebx
mov ax, word [ebp - 0x3c]
cmp word [ebp - 0x2c], ax
jae 0x414e37
mov esi, dword [edi]
mov dword [ebp - 0x44], esi
mov eax, dword [edi + 4]
test eax, eax
jns 0x414da7
and eax, 0x7fffffff
add eax, dword [ebp - 0x20]
lea esi, [eax + 0x10]
mov dword [ebp - 0x48], esi
mov cx, word [eax + 0xe]
add cx, word [eax + 0xc]
movzx eax, cx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x28], ebx
mov ax, word [ebp - 0x40]
cmp word [ebp - 0x28], ax
jae 0x414de6
mov ebx, dword [esi]
test dword [esi + 4], 0x80000000
jne 0x414d9a
push 0x38
call fcn.0043949a
pop ecx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x414d84
push dword [ebp - 0x20]
push dword [esi + 4]
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x34]
mov ecx, eax
call fcn.0041492d
mov ebx, eax
jmp 0x414d86
xor ebx, ebx
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.0040d778
mov dword [eax], ebx
inc dword [ebp - 0x14]
inc dword [ebp - 0x28]
add esi, 8
mov dword [ebp - 0x48], esi
xor ebx, ebx
jmp 0x414d40
push 0x38
call fcn.0043949a
pop ecx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
cmp eax, ebx
je 0x414dd0
push dword [ebp - 0x20]
push dword [edi + 4]
push ebx
push esi
push dword [ebp - 0x34]
mov ecx, eax
call fcn.0041492d
mov esi, eax
jmp 0x414dd2
xor esi, esi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.0040d778
mov dword [eax], esi
inc dword [ebp - 0x14]
inc dword [ebp - 0x2c]
add edi, 8
mov dword [ebp - 0x4c], edi
mov esi, dword [ebp - 0x30]
jmp 0x414d03
push 0x38
call fcn.0043949a
pop ecx
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 4
cmp eax, ebx
je 0x414e1e
push dword [ebp - 0x20]
push dword [esi + 4]
push ebx
push ebx
push edi
mov ecx, eax
call fcn.0041492d
mov esi, eax
jmp 0x414e20
xor esi, esi
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.0040d778
mov dword [eax], esi
inc dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
inc dword [ebp - 0x18]
add esi, 8
mov dword [ebp - 0x30], esi
jmp 0x414cc6
mov dword [ebp - 4], ebx
jmp 0x414e5d
cmp dword [ebp - 0x14], ebx
je 0x414fe3
mov dword [ebp - 0x1c], 1
cmp dword [0x4c566c], ebx
je 0x414e8c
push 0x402f10
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
jmp 0x414ef9
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x414e92
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
imul esi, esi, 3
push esi
call fcn.0043949a
mov edi, eax
push esi
push ebx
push edi
call sub.MSVCR80.dll_memset
add esp, 0x10
push ebx
push ebx
push esi
push edi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push dword [0x4c5efc]
call fcn.00438422
push 0x402f0c
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov byte [ebp - 4], 6
push edi
call fcn.00439525
pop ecx
mov dword [ebp - 4], ebx
jmp 0x414ef9
cmp dword [ebp - 0x24], ebx
je 0x414fd1
push 0x20
call fcn.0043949a
pop ecx
mov dword [ebp + 8], eax
mov byte [ebp - 4], 8
cmp eax, ebx
je 0x414f20
mov ecx, eax
call fcn.0041490b
mov esi, eax
jmp 0x414f22
xor esi, esi
mov byte [ebp - 4], 0
push dword [ebp - 0x24]
push 1
push 0x20
push esi
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov byte [ebp - 4], 9
push esi
call fcn.00439525
pop ecx
mov dword [ebp - 4], ebx
jmp 0x414f4f
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x18], ebx
movzx esi, word [ebp - 0x18]
cmp esi, dword [ebp - 0x14]
jae 0x414fb1
push esi
lea ecx, [ebp - 0x60]
call fcn.0040d778
push dword [ebp - 0x24]
mov ecx, dword [eax]
call fcn.00414a8a
mov byte [ebp - 4], 0xc
push esi
lea ecx, [ebp - 0x60]
call fcn.0040d778
mov ecx, dword [eax]
cmp ecx, ebx
je 0x414f8c
push 1
call fcn.00414c21
mov dword [ebp - 4], 0xb
jmp 0x414f9d
movzx eax, word [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
call fcn.0040d778
mov dword [eax], ebx
inc dword [ebp - 0x18]
jmp 0x414f56
mov dword [ebp - 4], ebx
jmp 0x414fc5
push dword [ebp - 0x24]
call dword [sym.imp.MSVCR80.dll_fclose]
pop ecx
jmp 0x414fe3
mov dword [ebp - 0x1c], 0xefffffff
jmp 0x414fe3
or dword [ebp - 0x1c], 0xffffffff
jmp 0x414fe3
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x60], ebx
je 0x414ff5
push dword [ebp - 0x60]
call fcn.00439525
pop ecx
mov eax, dword [ebp - 0x1c]
call fcn.0043efd7
ret 4