Function at 0x411f70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452530
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x45e00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x45e888]
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 0x411fde
cmp byte [edi + 1], 0
je 0x411fde
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x40]
test esi, esi
je 0x411fde
mov ecx, esi
call fcn.00438190
mov eax, dword [0x45e888]
test eax, eax
je 0x411fd3
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x45e888]
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x40], 0
je 0x412930
cmp byte [edi + 0x5368], 0
je 0x41204c
mov esi, dword [edi + 0x20]
test esi, esi
je 0x41204c
lea ecx, [ebp - 0x10]
mov dword [eax + 0x536c], 0
mov dword [ebp - 0x10], 0
call fcn.00421470
mov edx, 0x458c38
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.0040c950
mov esi, eax
test esi, esi
je 0x41204c
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.00423a00
xor esi, esi
cmp dword [edi + 0x5340], esi
jle 0x412098
nop dword [eax + eax]
mov eax, dword [edi + 0x5348]
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41208f
mov ecx, eax
call fcn.00424fb0
mov eax, dword [0x45e888]
test eax, eax
je 0x412087
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
inc esi
cmp esi, dword [edi + 0x5340]
jl 0x412060
xor esi, esi
cmp dword [edi + 0x53a0], esi
jle 0x4120da
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
mov edx, dword [edi + 0x53a8]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x4120cb
mov eax, dword [edx + 0xc]
push edx
push edi
call eax
mov ecx, dword [ebp - 0x10]
add esp, 8
inc esi
add ecx, 0x14
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x53a0]
jl 0x4120b0
xor esi, esi
lea ecx, [edi + 0x3ec4]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3ebc], esi
jle 0x41212b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412120
mov ecx, eax
call fcn.0040ee00
mov eax, dword [0x45e888]
test eax, eax
je 0x412112
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3ec4]
inc esi
cmp esi, dword [edi + 0x3ebc]
jl 0x4120f0
jmp 0x41212e
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x412166
mov eax, dword [0x45e888]
mov dword [edi + 0x3ec0], 0
mov dword [edi + 0x3ebc], 0
test eax, eax
je 0x412157
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3ed0]
test ecx, ecx
je 0x4121a3
mov eax, dword [0x45e888]
mov dword [edi + 0x3ecc], 0
mov dword [edi + 0x3ec8], 0
test eax, eax
je 0x412193
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 0x4121e0
mov eax, dword [0x45e888]
mov dword [edi + 0x3ed8], 0
mov dword [edi + 0x3ed4], 0
test eax, eax
je 0x4121d0
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 0x412227
mov eax, dword [0x45e888]
mov dword [edi + 0x3ee4], 0
mov dword [edi + 0x3ee0], 0
test eax, eax
je 0x412217
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 0x412264
mov eax, dword [0x45e888]
mov dword [edi + 0x3ef0], 0
mov dword [edi + 0x3eec], 0
test eax, eax
je 0x412254
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 0x4122dd
mov eax, dword [0x45e888]
mov dword [edi + 0x4078], 0
mov dword [edi + 0x4074], 0
test eax, eax
je 0x4122cd
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 0x41231a
mov eax, dword [0x45e888]
mov dword [edi + 0x4084], 0
mov dword [edi + 0x4080], 0
test eax, eax
je 0x41230a
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 0x412357
mov eax, dword [0x45e888]
mov dword [edi + 0x4090], 0
mov dword [edi + 0x408c], 0
test eax, eax
je 0x412347
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 0x412394
mov eax, dword [0x45e888]
mov dword [edi + 0x40c0], 0
mov dword [edi + 0x40bc], 0
test eax, eax
je 0x412384
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 0x4123d1
mov eax, dword [0x45e888]
mov dword [edi + 0x40cc], 0
mov dword [edi + 0x40c8], 0
test eax, eax
je 0x4123c1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x40d0], 0
xor ecx, ecx
mov dword [edi + 0x40f0], 0
mov dword [edi + 0x40ec], 0
lea edx, [edi + 0x40e0]
mov dword [edi + 0x40e8], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x40d8], ecx
jle 0x4124c4
nop dword [eax]
mov eax, dword [edx]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x4124b2
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x78]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41244c
mov ecx, eax
call fcn.0040a6e0
mov eax, dword [0x45e888]
test eax, eax
je 0x412444
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 0x412474
mov ecx, eax
call fcn.0040a6e0
mov eax, dword [0x45e888]
test eax, eax
je 0x41246c
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
push 0x42c140
push 2
push 0xc
lea eax, [esi + 0xb0]
mov byte [ebp - 4], 1
push eax
call fcn.00450a88
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x45e888]
test eax, eax
je 0x4124a3
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0x40e0]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x40d8]
jl 0x412410
jmp 0x4124c7
mov dword [ebp - 0x14], edx
mov ecx, dword [edx]
test ecx, ecx
je 0x4124ff
mov eax, dword [0x45e888]
mov dword [edi + 0x40dc], 0
mov dword [edi + 0x40d8], 0
test eax, eax
je 0x4124f0
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x4380]
call fcn.0042c490
mov ecx, dword [edi + 0x43a8]
test ecx, ecx
je 0x412547
mov eax, dword [0x45e888]
mov dword [edi + 0x43a4], 0
mov dword [edi + 0x43a0], 0
test eax, eax
je 0x412537
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 0x412584
mov eax, dword [0x45e888]
mov dword [edi + 0x43b0], 0
mov dword [edi + 0x43ac], 0
test eax, eax
je 0x412574
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x43b4], 0
xor esi, esi
lea eax, [edi + 0x432c]
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x4324], esi
jle 0x4125e6
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov eax, dword [eax]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x4125c2
mov eax, dword [0x45e888]
test eax, eax
je 0x4125b9
dec dword [eax + 0xb0]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
mov dword [ebp - 4], 0xffffffff
add ecx, 0x1c
lea eax, [edi + 0x432c]
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x4324]
jl 0x4125a0
lea eax, [edi + 0x432c]
jmp 0x4125e9
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x412621
mov eax, dword [0x45e888]
mov dword [edi + 0x4328], 0
mov dword [edi + 0x4324], 0
test eax, eax
je 0x412612
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x4344]
call fcn.0042c630
cmp dword [edi + 0x4338], 0
lea esi, [edi + 0x4340]
mov dword [ebp - 0x14], 0
jle 0x4126a1
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, dword [esi]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.004379d0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x412676
mov eax, dword [0x45e888]
test eax, eax
je 0x412670
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
lea esi, [edi + 0x4340]
mov dword [ebp - 4], 0xffffffff
inc eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
cmp eax, dword [edi + 0x4338]
jl 0x412647
lea esi, [edi + 0x4340]
mov ecx, dword [esi]
test ecx, ecx
je 0x4126d6
mov eax, dword [0x45e888]
mov dword [edi + 0x433c], 0
mov dword [edi + 0x4338], 0
test eax, eax
je 0x4126ca
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x4378]
test ecx, ecx
je 0x412713
mov eax, dword [0x45e888]
mov dword [edi + 0x4374], 0
mov dword [edi + 0x4370], 0
test eax, eax
je 0x412703
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 0x412750
mov eax, dword [0x45e888]
mov dword [edi + 0x5304], 0
mov dword [edi + 0x5300], 0
test eax, eax
je 0x412740
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 0x41278d
mov eax, dword [0x45e888]
mov dword [edi + 0x5310], 0
mov dword [edi + 0x530c], 0
test eax, eax
je 0x41277d
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 0x4127ca
mov eax, dword [0x45e888]
mov dword [edi + 0x43d0], 0
mov dword [edi + 0x43cc], 0
test eax, eax
je 0x4127ba
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 0x412807
mov eax, dword [0x45e888]
mov dword [edi + 0x43dc], 0
mov dword [edi + 0x43d8], 0
test eax, eax
je 0x4127f7
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 0x412844
mov eax, dword [0x45e888]
mov dword [edi + 0x43e8], 0
mov dword [edi + 0x43e4], 0
test eax, eax
je 0x412834
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 0x412881
mov eax, dword [0x45e888]
mov dword [edi + 0x538c], 0
mov dword [edi + 0x5388], 0
test eax, eax
je 0x412871
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 0x4128be
mov eax, dword [0x45e888]
mov dword [edi + 0x5380], 0
mov dword [edi + 0x537c], 0
test eax, eax
je 0x4128ae
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5384], 0
cmp dword [edi + 0x53b8], 0
je 0x4128f0
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 0x4128e6
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 0x41292d
mov eax, dword [0x45e888]
mov dword [edi + 0x53c0], 0
mov dword [edi + 0x53bc], 0
test eax, eax
je 0x41291d
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