Function at 0x40b4e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x433f10
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [0x542698]
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x40b51d
cmp byte [edi + 1], 0
je 0x40b51d
mov byte [eax + 0x10], 0
mov ecx, dword [edi + 0x2c]
call fcn.0041f120
mov dword [edi + 0x2c], 0
mov ecx, dword [edi + 0x3c1c]
test ecx, ecx
je 0x40b56a
mov eax, dword [0x542698]
mov dword [edi + 0x3c18], 0
mov dword [edi + 0x3c14], 0
test eax, eax
je 0x40b551
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x3c1c], 0
cmp byte [edi], 0
je 0x40c010
cmp byte [edi + 0x5a81], 0
je 0x40b5d3
mov esi, dword [edi + 0x20]
test esi, esi
je 0x40b5d3
mov eax, dword [0x542698]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [eax + 0x5a84], 0
call fcn.0041d400
mov edx, 0x53f348
mov ecx, esi
mov ebx, eax
call fcn.00409e60
mov esi, eax
test esi, esi
je 0x40b5d3
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
push 1
push ebx
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
xor esi, esi
cmp dword [edi + 0x5ab8], esi
jle 0x40b604
xor ebx, ebx
nop
mov ecx, dword [edi + 0x5ac0]
add ecx, ebx
cmp dword [ecx + 4], 6
jne 0x40b5f8
mov eax, dword [ecx + 0xc]
push ecx
push edi
call eax
add esp, 8
inc esi
add ebx, 0x14
cmp esi, dword [edi + 0x5ab8]
jl 0x40b5e0
xor esi, esi
lea ecx, [edi + 0x3e38]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3e30], esi
jle 0x40b656
mov eax, dword [ecx]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x40b64b
mov ecx, ebx
call fcn.0040c750
mov eax, dword [0x542698]
test eax, eax
je 0x40b636
dec dword [eax + 0xac]
push dword [0x54269c]
push ebx
call fcn.00409220
add esp, 8
lea ecx, [edi + 0x3e38]
inc esi
cmp esi, dword [edi + 0x3e30]
jl 0x40b617
jmp 0x40b659
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x40b69a
mov eax, dword [0x542698]
mov dword [edi + 0x3e34], 0
mov dword [edi + 0x3e30], 0
test eax, eax
je 0x40b682
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [eax], 0
mov ecx, dword [edi + 0x3e44]
test ecx, ecx
je 0x40b6e0
mov eax, dword [0x542698]
mov dword [edi + 0x3e40], 0
mov dword [edi + 0x3e3c], 0
test eax, eax
je 0x40b6c7
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x3e44], 0
mov ecx, dword [edi + 0x3e50]
test ecx, ecx
je 0x40b726
mov eax, dword [0x542698]
mov dword [edi + 0x3e4c], 0
mov dword [edi + 0x3e48], 0
test eax, eax
je 0x40b70d
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x3e50], 0
mov dword [edi + 0x3e78], 0
mov ecx, dword [edi + 0x3e5c]
test ecx, ecx
je 0x40b776
mov eax, dword [0x542698]
mov dword [edi + 0x3e58], 0
mov dword [edi + 0x3e54], 0
test eax, eax
je 0x40b75d
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x3e5c], 0
mov ecx, dword [edi + 0x3e68]
test ecx, ecx
je 0x40b7bc
mov eax, dword [0x542698]
mov dword [edi + 0x3e64], 0
mov dword [edi + 0x3e60], 0
test eax, eax
je 0x40b7a3
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x3e68], 0
lea ecx, [edi + 0x4590]
mov dword [edi + 0x47fc], 0
mov dword [edi + 0x3e80], 0
mov dword [edi + 0x3e7c], 0
mov dword [edi + 0x3ef4], 0
mov dword [edi + 0x3ee0], 0
mov dword [edi + 0x3e84], 0
call fcn.004078d0
mov ecx, dword [edi + 0x4794]
test ecx, ecx
je 0x40b849
mov eax, dword [0x542698]
mov dword [edi + 0x4790], 0
mov dword [edi + 0x478c], 0
test eax, eax
je 0x40b830
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4794], 0
mov ecx, dword [edi + 0x47a0]
test ecx, ecx
je 0x40b88f
mov eax, dword [0x542698]
mov dword [edi + 0x479c], 0
mov dword [edi + 0x4798], 0
test eax, eax
je 0x40b876
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x47a0], 0
mov ecx, dword [edi + 0x47ac]
test ecx, ecx
je 0x40b8d5
mov eax, dword [0x542698]
mov dword [edi + 0x47a8], 0
mov dword [edi + 0x47a4], 0
test eax, eax
je 0x40b8bc
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x47ac], 0
mov ecx, dword [edi + 0x47dc]
test ecx, ecx
je 0x40b91b
mov eax, dword [0x542698]
mov dword [edi + 0x47d8], 0
mov dword [edi + 0x47d4], 0
test eax, eax
je 0x40b902
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x47dc], 0
mov ecx, dword [edi + 0x47e8]
test ecx, ecx
je 0x40b961
mov eax, dword [0x542698]
mov dword [edi + 0x47e4], 0
mov dword [edi + 0x47e0], 0
test eax, eax
je 0x40b948
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x47e8], 0
xor ebx, ebx
lea ecx, [edi + 0x47f8]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x47f0], ebx
jle 0x40ba3e
mov eax, dword [ecx]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x40ba2f
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b9bd
mov ecx, eax
call fcn.004075f0
mov eax, dword [0x542698]
test eax, eax
je 0x40b9ac
dec dword [eax + 0xac]
push dword [0x54269c]
push dword [ebp - 0x14]
call fcn.00409220
add esp, 8
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b9ee
mov ecx, eax
call fcn.004075f0
mov eax, dword [0x542698]
test eax, eax
je 0x40b9dd
dec dword [eax + 0xac]
push dword [0x54269c]
push dword [ebp - 0x14]
call fcn.00409220
add esp, 8
push 0x41e270
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.00432dc1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x542698]
test eax, eax
je 0x40ba1a
dec dword [eax + 0xac]
push dword [0x54269c]
push esi
call fcn.00409220
add esp, 8
lea ecx, [edi + 0x47f8]
inc ebx
cmp ebx, dword [edi + 0x47f0]
jl 0x40b978
jmp 0x40ba41
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x40ba82
mov eax, dword [0x542698]
mov dword [edi + 0x47f4], 0
mov dword [edi + 0x47f0], 0
test eax, eax
je 0x40ba6a
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [eax], 0
lea ecx, [edi + 0x4a84]
call fcn.0041e2c0
mov ecx, dword [edi + 0x4aac]
test ecx, ecx
je 0x40bad3
mov eax, dword [0x542698]
mov dword [edi + 0x4aa8], 0
mov dword [edi + 0x4aa4], 0
test eax, eax
je 0x40baba
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4aac], 0
mov ecx, dword [edi + 0x4ab8]
test ecx, ecx
je 0x40bb19
mov eax, dword [0x542698]
mov dword [edi + 0x4ab4], 0
mov dword [edi + 0x4ab0], 0
test eax, eax
je 0x40bb00
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4ab8], 0
xor esi, esi
lea edx, [edi + 0x4a30]
mov dword [ebp - 0x10], edx
cmp dword [edi + 0x4a28], esi
jle 0x40bb7a
xor ebx, ebx
nop
mov eax, dword [edx]
mov dword [ebp - 4], 2
mov ecx, dword [eax + ebx + 0x18]
test ecx, ecx
je 0x40bb65
mov eax, dword [0x542698]
test eax, eax
je 0x40bb50
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
lea edx, [edi + 0x4a30]
inc esi
mov dword [ebp - 4], 0xffffffff
add ebx, 0x1c
cmp esi, dword [edi + 0x4a28]
jl 0x40bb30
jmp 0x40bb7d
mov dword [ebp - 0x10], edx
mov ecx, dword [edx]
test ecx, ecx
je 0x40bbbe
mov eax, dword [0x542698]
mov dword [edi + 0x4a2c], 0
mov dword [edi + 0x4a28], 0
test eax, eax
je 0x40bba6
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
mov eax, dword [ebp - 0x10]
add esp, 8
mov dword [eax], 0
lea ecx, [edi + 0x4a48]
call fcn.0041e490
xor ebx, ebx
lea esi, [edi + 0x4a44]
cmp dword [edi + 0x4a3c], ebx
jle 0x40bc41
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop
mov esi, dword [esi]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.0042a860
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x40bc1c
mov eax, dword [0x542698]
test eax, eax
je 0x40bc0d
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea esi, [edi + 0x4a44]
mov ecx, dword [ebp - 0x10]
inc ebx
add ecx, 0x68
mov dword [ebp - 0x10], ecx
cmp ebx, dword [edi + 0x4a3c]
jl 0x40bbe0
lea esi, [edi + 0x4a44]
mov ecx, dword [esi]
test ecx, ecx
je 0x40bc7f
mov eax, dword [0x542698]
mov dword [edi + 0x4a40], 0
mov dword [edi + 0x4a3c], 0
test eax, eax
je 0x40bc6a
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [esi], 0
mov ecx, dword [edi + 0x4a7c]
test ecx, ecx
je 0x40bcc5
mov eax, dword [0x542698]
mov dword [edi + 0x4a78], 0
mov dword [edi + 0x4a74], 0
test eax, eax
je 0x40bcac
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4a7c], 0
mov ecx, dword [edi + 0x5a50]
test ecx, ecx
je 0x40bd0b
mov eax, dword [0x542698]
mov dword [edi + 0x5a4c], 0
mov dword [edi + 0x5a48], 0
test eax, eax
je 0x40bcf2
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5a50], 0
mov ecx, dword [edi + 0x5a5c]
test ecx, ecx
je 0x40bd51
mov eax, dword [0x542698]
mov dword [edi + 0x5a58], 0
mov dword [edi + 0x5a54], 0
test eax, eax
je 0x40bd38
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5a5c], 0
mov ecx, dword [edi + 0x4afc]
test ecx, ecx
je 0x40bd97
mov eax, dword [0x542698]
mov dword [edi + 0x4af8], 0
mov dword [edi + 0x4af4], 0
test eax, eax
je 0x40bd7e
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4afc], 0
mov ecx, dword [edi + 0x4b08]
test ecx, ecx
je 0x40bddd
mov eax, dword [0x542698]
mov dword [edi + 0x4b04], 0
mov dword [edi + 0x4b00], 0
test eax, eax
je 0x40bdc4
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4b08], 0
mov ecx, dword [edi + 0x4b14]
test ecx, ecx
je 0x40be23
mov eax, dword [0x542698]
mov dword [edi + 0x4b10], 0
mov dword [edi + 0x4b0c], 0
test eax, eax
je 0x40be0a
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x4b14], 0
mov dword [edi + 0x595c], 0
mov ecx, dword [edi + 0x5968]
test ecx, ecx
je 0x40be73
mov eax, dword [0x542698]
mov dword [edi + 0x5964], 0
mov dword [edi + 0x5960], 0
test eax, eax
je 0x40be5a
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5968], 0
mov ecx, dword [edi + 0x5aa8]
test ecx, ecx
je 0x40beb9
mov eax, dword [0x542698]
mov dword [edi + 0x5aa4], 0
mov dword [edi + 0x5aa0], 0
test eax, eax
je 0x40bea0
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5aa8], 0
mov ecx, dword [edi + 0x5a9c]
test ecx, ecx
je 0x40beff
mov eax, dword [0x542698]
mov dword [edi + 0x5a98], 0
mov dword [edi + 0x5a94], 0
test eax, eax
je 0x40bee6
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5a9c], 0
cmp dword [edi + 0x5af0], 0
je 0x40bf31
mov esi, dword [edi + 0x5af0]
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 0x40bf27
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5af0], 0
mov ecx, dword [edi + 0x5afc]
test ecx, ecx
je 0x40bf77
mov eax, dword [0x542698]
mov dword [edi + 0x5af8], 0
mov dword [edi + 0x5af4], 0
test eax, eax
je 0x40bf5e
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5afc], 0
mov ecx, dword [edi + 0x5b28]
test ecx, ecx
je 0x40bfbd
mov eax, dword [0x542698]
mov dword [edi + 0x5b24], 0
mov dword [edi + 0x5b20], 0
test eax, eax
je 0x40bfa4
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5b28], 0
mov ecx, dword [edi + 0x5b34]
test ecx, ecx
je 0x40c003
mov eax, dword [0x542698]
mov dword [edi + 0x5b30], 0
mov dword [edi + 0x5b2c], 0
test eax, eax
je 0x40bfea
dec dword [eax + 0xac]
push dword [0x54269c]
push ecx
call fcn.00409220
add esp, 8
mov dword [edi + 0x5b34], 0
mov dword [edi + 0x5b38], 0
mov byte [edi], 0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret