Function at 0x40a4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441850
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x44b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x44b4b8]
mov edi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [edi + 0x40]
test ecx, ecx
je 0x40a53e
cmp byte [edi + 1], 0
je 0x40a53e
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x40]
test esi, esi
je 0x40a53e
mov ecx, esi
call fcn.0042f6d0
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40a533
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x44b4b8]
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x40], 0
je 0x40ae6d
cmp byte [edi + 0x5368], 0
je 0x40a5ac
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40a5ac
lea ecx, [ebp - 0x10]
mov dword [eax + 0x536c], 0
mov dword [ebp - 0x10], 0
call fcn.00418c10
mov edx, 0x446b2c
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00405270
mov esi, eax
test esi, esi
je 0x40a5ac
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
call fcn.0041b140
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x5340], edx
jle 0x40a605
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0x5348]
mov esi, dword [eax + ecx + 4]
test esi, esi
je 0x40a5f3
mov ecx, esi
call fcn.0041c7a0
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40a5e7
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, dword [ebp - 0x10]
inc edx
add ecx, 8
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
cmp edx, dword [edi + 0x5340]
jl 0x40a5c3
xor esi, esi
cmp dword [edi + 0x53a0], esi
jle 0x40a63e
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [edi + 0x53a8]
add eax, ecx
cmp dword [eax + 4], 6
jne 0x40a62f
push eax
mov eax, dword [eax + 0xc]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x53a0]
jl 0x40a614
xor edx, edx
lea esi, [edi + 0x3ec4]
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x3ebc], edx
jle 0x40a69f
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [esi]
mov esi, dword [ecx + eax]
test esi, esi
je 0x40a681
mov ecx, esi
call fcn.004074a0
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40a675
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0x14]
inc edx
lea esi, [edi + 0x3ec4]
add ecx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
cmp edx, dword [edi + 0x3ebc]
jl 0x40a656
lea esi, [edi + 0x3ec4]
mov ecx, dword [esi]
test ecx, ecx
je 0x40a6d4
mov eax, dword [0x44b4b8]
mov dword [edi + 0x3ec0], 0
mov dword [edi + 0x3ebc], 0
test eax, eax
je 0x40a6c8
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x3ed0]
test ecx, ecx
je 0x40a711
mov eax, dword [0x44b4b8]
mov dword [edi + 0x3ecc], 0
mov dword [edi + 0x3ec8], 0
test eax, eax
je 0x40a701
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3ed0], 0
mov ecx, dword [edi + 0x3edc]
test ecx, ecx
je 0x40a74e
mov eax, dword [0x44b4b8]
mov dword [edi + 0x3ed8], 0
mov dword [edi + 0x3ed4], 0
test eax, eax
je 0x40a73e
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3edc], 0
mov dword [edi + 0x3f04], 0
mov ecx, dword [edi + 0x3ee8]
test ecx, ecx
je 0x40a795
mov eax, dword [0x44b4b8]
mov dword [edi + 0x3ee4], 0
mov dword [edi + 0x3ee0], 0
test eax, eax
je 0x40a785
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3ee8], 0
mov ecx, dword [edi + 0x3ef4]
test ecx, ecx
je 0x40a7d2
mov eax, dword [0x44b4b8]
mov dword [edi + 0x3ef0], 0
mov dword [edi + 0x3eec], 0
test eax, eax
je 0x40a7c2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3ef4], 0
mov dword [edi + 0x4120], 0
mov dword [edi + 0x3f0c], 0
mov dword [edi + 0x3f08], 0
mov dword [edi + 0x3f8c], 0
mov dword [edi + 0x3f78], 0
mov dword [edi + 0x3f14], 0
mov ecx, dword [edi + 0x407c]
test ecx, ecx
je 0x40a84b
mov eax, dword [0x44b4b8]
mov dword [edi + 0x4078], 0
mov dword [edi + 0x4074], 0
test eax, eax
je 0x40a83b
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x407c], 0
mov ecx, dword [edi + 0x4088]
test ecx, ecx
je 0x40a888
mov eax, dword [0x44b4b8]
mov dword [edi + 0x4084], 0
mov dword [edi + 0x4080], 0
test eax, eax
je 0x40a878
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4088], 0
mov ecx, dword [edi + 0x4094]
test ecx, ecx
je 0x40a8c5
mov eax, dword [0x44b4b8]
mov dword [edi + 0x4090], 0
mov dword [edi + 0x408c], 0
test eax, eax
je 0x40a8b5
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4094], 0
mov ecx, dword [edi + 0x40c4]
test ecx, ecx
je 0x40a902
mov eax, dword [0x44b4b8]
mov dword [edi + 0x40c0], 0
mov dword [edi + 0x40bc], 0
test eax, eax
je 0x40a8f2
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40c4], 0
mov ecx, dword [edi + 0x40d0]
test ecx, ecx
je 0x40a93f
mov eax, dword [0x44b4b8]
mov dword [edi + 0x40cc], 0
mov dword [edi + 0x40c8], 0
test eax, eax
je 0x40a92f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40d0], 0
xor edx, edx
mov dword [edi + 0x40f0], 0
mov dword [edi + 0x40ec], 0
mov dword [edi + 0x40e8], 0
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x40d8], edx
jle 0x40aa28
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0x40e0]
mov esi, dword [ecx + eax]
test esi, esi
je 0x40aa12
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40a9ac
mov ecx, eax
call fcn.00402fb0
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40a9a4
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40a9d4
mov ecx, eax
call fcn.00402fb0
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40a9cc
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
push 0x423950
push 2
push 0xc
lea eax, [esi + 0xb0]
mov dword [ebp - 4], 0
push eax
call fcn.00440294
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40aa06
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov edx, dword [ebp - 0x14]
inc edx
add ecx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
cmp edx, dword [edi + 0x40d8]
jl 0x40a973
mov ecx, dword [edi + 0x40e0]
test ecx, ecx
je 0x40aa65
mov eax, dword [0x44b4b8]
mov dword [edi + 0x40dc], 0
mov dword [edi + 0x40d8], 0
test eax, eax
je 0x40aa55
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40e0], 0
lea ecx, [edi + 0x4380]
call fcn.00423b70
mov ecx, dword [edi + 0x43a8]
test ecx, ecx
je 0x40aaad
mov eax, dword [0x44b4b8]
mov dword [edi + 0x43a4], 0
mov dword [edi + 0x43a0], 0
test eax, eax
je 0x40aa9d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43a8], 0
mov ecx, dword [edi + 0x43b4]
test ecx, ecx
je 0x40aaea
mov eax, dword [0x44b4b8]
mov dword [edi + 0x43b0], 0
mov dword [edi + 0x43ac], 0
test eax, eax
je 0x40aada
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43b4], 0
xor esi, esi
cmp dword [edi + 0x4324], esi
jle 0x40ab35
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [edi + 0x432c]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x40ab26
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40ab1d
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
add ecx, 0x1c
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x4324]
jl 0x40ab00
mov ecx, dword [edi + 0x432c]
test ecx, ecx
je 0x40ab72
mov eax, dword [0x44b4b8]
mov dword [edi + 0x4328], 0
mov dword [edi + 0x4324], 0
test eax, eax
je 0x40ab62
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x432c], 0
lea ecx, [edi + 0x4344]
call fcn.00423c80
cmp dword [edi + 0x4338], 0
mov dword [ebp - 0x14], 0
jle 0x40abd6
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, dword [edi + 0x4340]
add esi, ecx
lea ecx, [esi + 0x10]
call fcn.0042eee0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40abbe
mov eax, dword [0x44b4b8]
test eax, eax
je 0x40abb8
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 0x68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x4338]
jl 0x40ab92
mov ecx, dword [edi + 0x4340]
test ecx, ecx
je 0x40ac13
mov eax, dword [0x44b4b8]
mov dword [edi + 0x433c], 0
mov dword [edi + 0x4338], 0
test eax, eax
je 0x40ac03
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4340], 0
mov ecx, dword [edi + 0x4378]
test ecx, ecx
je 0x40ac50
mov eax, dword [0x44b4b8]
mov dword [edi + 0x4374], 0
mov dword [edi + 0x4370], 0
test eax, eax
je 0x40ac40
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4378], 0
mov ecx, dword [edi + 0x5308]
test ecx, ecx
je 0x40ac8d
mov eax, dword [0x44b4b8]
mov dword [edi + 0x5304], 0
mov dword [edi + 0x5300], 0
test eax, eax
je 0x40ac7d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5308], 0
mov ecx, dword [edi + 0x5314]
test ecx, ecx
je 0x40acca
mov eax, dword [0x44b4b8]
mov dword [edi + 0x5310], 0
mov dword [edi + 0x530c], 0
test eax, eax
je 0x40acba
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5314], 0
mov ecx, dword [edi + 0x43d4]
test ecx, ecx
je 0x40ad07
mov eax, dword [0x44b4b8]
mov dword [edi + 0x43d0], 0
mov dword [edi + 0x43cc], 0
test eax, eax
je 0x40acf7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43d4], 0
mov ecx, dword [edi + 0x43e0]
test ecx, ecx
je 0x40ad44
mov eax, dword [0x44b4b8]
mov dword [edi + 0x43dc], 0
mov dword [edi + 0x43d8], 0
test eax, eax
je 0x40ad34
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43e0], 0
mov ecx, dword [edi + 0x43ec]
test ecx, ecx
je 0x40ad81
mov eax, dword [0x44b4b8]
mov dword [edi + 0x43e8], 0
mov dword [edi + 0x43e4], 0
test eax, eax
je 0x40ad71
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43ec], 0
mov ecx, dword [edi + 0x5390]
test ecx, ecx
je 0x40adbe
mov eax, dword [0x44b4b8]
mov dword [edi + 0x538c], 0
mov dword [edi + 0x5388], 0
test eax, eax
je 0x40adae
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5390], 0
mov ecx, dword [edi + 0x5384]
test ecx, ecx
je 0x40adfb
mov eax, dword [0x44b4b8]
mov dword [edi + 0x5380], 0
mov dword [edi + 0x537c], 0
test eax, eax
je 0x40adeb
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5384], 0
cmp dword [edi + 0x53b8], 0
je 0x40ae2d
mov esi, dword [edi + 0x53b8]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x40ae23
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x53b8], 0
mov ecx, dword [edi + 0x53c4]
test ecx, ecx
je 0x40ae6a
mov eax, dword [0x44b4b8]
mov dword [edi + 0x53c0], 0
mov dword [edi + 0x53bc], 0
test eax, eax
je 0x40ae5a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x53c4], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret