Function at 0x41b790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448790
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x457040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x98]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x41b7fa
cmp byte [edi + 1], 0
je 0x41b7fa
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x41b7fa
mov ecx, esi
call fcn.00435370
mov eax, dword [0x4674c0]
test eax, eax
je 0x41b7f4
dec dword [eax + 0x36c]
push esi
call ebx
add esp, 4
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x41c0c9
cmp byte [edi + 0x2f5d], 0
je 0x41b881
mov esi, dword [edi + 0x20]
test esi, esi
je 0x41b881
mov eax, dword [0x4674c0]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [0x4674c0], edi
mov dword [edi + 0x2f60], 0
mov dword [ebp - 0x10], 0
call fcn.00428920
mov edx, 0x44fd44
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.00417640
mov esi, eax
test esi, esi
je 0x41b879
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
mov eax, dword [ebp - 0x18]
mov dword [0x4674c0], eax
xor esi, esi
cmp dword [edi + 0x2f94], esi
jle 0x41b8ba
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov edx, dword [edi + 0x2f9c]
add edx, ecx
cmp dword [edx + 4], 6
jne 0x41b8ab
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 + 0x2f94]
jl 0x41b890
xor esi, esi
lea ecx, [edi + 0x1b68]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x1b60], esi
jle 0x41b90b
nop dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41b900
mov ecx, eax
call fcn.00418ab0
mov eax, dword [0x4674c0]
test eax, eax
je 0x41b8f2
dec dword [eax + 0x36c]
push dword [ebp - 0x18]
call ebx
add esp, 4
lea ecx, [edi + 0x1b68]
inc esi
cmp esi, dword [edi + 0x1b60]
jl 0x41b8d0
jmp 0x41b90e
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x41b946
mov eax, dword [0x4674c0]
mov dword [edi + 0x1b64], 0
mov dword [edi + 0x1b60], 0
test eax, eax
je 0x41b937
dec dword [eax + 0x36c]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x1b74]
test ecx, ecx
je 0x41b983
mov eax, dword [0x4674c0]
mov dword [edi + 0x1b70], 0
mov dword [edi + 0x1b6c], 0
test eax, eax
je 0x41b973
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b74], 0
mov ecx, dword [edi + 0x1b80]
test ecx, ecx
je 0x41b9c0
mov eax, dword [0x4674c0]
mov dword [edi + 0x1b7c], 0
mov dword [edi + 0x1b78], 0
test eax, eax
je 0x41b9b0
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1ba8], 0
mov ecx, dword [edi + 0x1b8c]
test ecx, ecx
je 0x41ba07
mov eax, dword [0x4674c0]
mov dword [edi + 0x1b88], 0
mov dword [edi + 0x1b84], 0
test eax, eax
je 0x41b9f7
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b8c], 0
mov ecx, dword [edi + 0x1b98]
test ecx, ecx
je 0x41ba44
mov eax, dword [0x4674c0]
mov dword [edi + 0x1b94], 0
mov dword [edi + 0x1b90], 0
test eax, eax
je 0x41ba34
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1b98], 0
mov dword [edi + 0x1d54], 0
mov dword [edi + 0x1bb0], 0
mov dword [edi + 0x1bac], 0
mov dword [edi + 0x1c24], 0
mov dword [edi + 0x1c10], 0
mov dword [edi + 0x1bb4], 0
mov ecx, dword [edi + 0x1cec]
test ecx, ecx
je 0x41babd
mov eax, dword [0x4674c0]
mov dword [edi + 0x1ce8], 0
mov dword [edi + 0x1ce4], 0
test eax, eax
je 0x41baad
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cec], 0
mov ecx, dword [edi + 0x1cf8]
test ecx, ecx
je 0x41bafa
mov eax, dword [0x4674c0]
mov dword [edi + 0x1cf4], 0
mov dword [edi + 0x1cf0], 0
test eax, eax
je 0x41baea
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1cf8], 0
mov ecx, dword [edi + 0x1d04]
test ecx, ecx
je 0x41bb37
mov eax, dword [0x4674c0]
mov dword [edi + 0x1d00], 0
mov dword [edi + 0x1cfc], 0
test eax, eax
je 0x41bb27
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d04], 0
mov ecx, dword [edi + 0x1d34]
test ecx, ecx
je 0x41bb74
mov eax, dword [0x4674c0]
mov dword [edi + 0x1d30], 0
mov dword [edi + 0x1d2c], 0
test eax, eax
je 0x41bb64
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d34], 0
mov ecx, dword [edi + 0x1d40]
test ecx, ecx
je 0x41bbb1
mov eax, dword [0x4674c0]
mov dword [edi + 0x1d3c], 0
mov dword [edi + 0x1d38], 0
test eax, eax
je 0x41bba1
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d40], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x1d48], ecx
jle 0x41bc6f
mov eax, dword [edi + 0x1d50]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x41bc5f
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41bc02
mov ecx, eax
call fcn.004159b0
mov eax, dword [0x4674c0]
test eax, eax
je 0x41bbfa
dec dword [eax + 0x36c]
push dword [ebp - 0x18]
call ebx
add esp, 4
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41bc2a
mov ecx, eax
call fcn.004159b0
mov eax, dword [0x4674c0]
test eax, eax
je 0x41bc22
dec dword [eax + 0x36c]
push dword [ebp - 0x18]
call ebx
add esp, 4
push 0x429320
push 2
push 0xc
lea eax, [esi + 0x60]
mov byte [ebp - 4], 1
push eax
call fcn.00445d08
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x4674c0]
test eax, eax
je 0x41bc56
dec dword [eax + 0x36c]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x1d48]
jl 0x41bbc2
mov ecx, dword [edi + 0x1d50]
test ecx, ecx
je 0x41bcac
mov eax, dword [0x4674c0]
mov dword [edi + 0x1d4c], 0
mov dword [edi + 0x1d48], 0
test eax, eax
je 0x41bc9c
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1d50], 0
lea ecx, [edi + 0x1fb4]
call fcn.00429440
mov ecx, dword [edi + 0x1fdc]
test ecx, ecx
je 0x41bcf4
mov eax, dword [0x4674c0]
mov dword [edi + 0x1fd8], 0
mov dword [edi + 0x1fd4], 0
test eax, eax
je 0x41bce4
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fdc], 0
mov ecx, dword [edi + 0x1fe8]
test ecx, ecx
je 0x41bd31
mov eax, dword [0x4674c0]
mov dword [edi + 0x1fe4], 0
mov dword [edi + 0x1fe0], 0
test eax, eax
je 0x41bd21
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fe8], 0
xor esi, esi
cmp dword [edi + 0x1f58], esi
jle 0x41bd7c
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [edi + 0x1f60]
mov edx, dword [eax + ecx + 0x18]
test edx, edx
je 0x41bd66
mov eax, dword [0x4674c0]
test eax, eax
je 0x41bd5d
dec dword [eax + 0x36c]
push edx
call ebx
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 4], 0xffffffff
inc esi
add ecx, 0x1c
mov dword [ebp - 0x10], ecx
cmp esi, dword [edi + 0x1f58]
jl 0x41bd40
mov ecx, dword [edi + 0x1f60]
test ecx, ecx
je 0x41bdb9
mov eax, dword [0x4674c0]
mov dword [edi + 0x1f5c], 0
mov dword [edi + 0x1f58], 0
test eax, eax
je 0x41bda9
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f60], 0
lea ecx, [edi + 0x1f78]
call fcn.004295f0
cmp dword [edi + 0x1f6c], 0
mov dword [ebp - 0x10], 0
jle 0x41be32
xor ecx, ecx
mov dword [ebp - 0x14], ecx
nop dword [eax]
mov esi, dword [edi + 0x1f74]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 3
call fcn.00434cb0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41be13
mov eax, dword [0x4674c0]
test eax, eax
je 0x41be0d
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
add ecx, 0x68
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp eax, dword [edi + 0x1f6c]
jl 0x41bde0
mov ecx, dword [edi + 0x1f74]
test ecx, ecx
je 0x41be6f
mov eax, dword [0x4674c0]
mov dword [edi + 0x1f70], 0
mov dword [edi + 0x1f6c], 0
test eax, eax
je 0x41be5f
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1f74], 0
mov ecx, dword [edi + 0x1fac]
test ecx, ecx
je 0x41beac
mov eax, dword [0x4674c0]
mov dword [edi + 0x1fa8], 0
mov dword [edi + 0x1fa4], 0
test eax, eax
je 0x41be9c
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x1fac], 0
mov ecx, dword [edi + 0x2f3c]
test ecx, ecx
je 0x41bee9
mov eax, dword [0x4674c0]
mov dword [edi + 0x2f38], 0
mov dword [edi + 0x2f34], 0
test eax, eax
je 0x41bed9
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f3c], 0
mov ecx, dword [edi + 0x2f48]
test ecx, ecx
je 0x41bf26
mov eax, dword [0x4674c0]
mov dword [edi + 0x2f44], 0
mov dword [edi + 0x2f40], 0
test eax, eax
je 0x41bf16
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f48], 0
mov ecx, dword [edi + 0x2008]
test ecx, ecx
je 0x41bf63
mov eax, dword [0x4674c0]
mov dword [edi + 0x2004], 0
mov dword [edi + 0x2000], 0
test eax, eax
je 0x41bf53
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2008], 0
mov ecx, dword [edi + 0x2014]
test ecx, ecx
je 0x41bfa0
mov eax, dword [0x4674c0]
mov dword [edi + 0x2010], 0
mov dword [edi + 0x200c], 0
test eax, eax
je 0x41bf90
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2014], 0
mov ecx, dword [edi + 0x2020]
test ecx, ecx
je 0x41bfdd
mov eax, dword [0x4674c0]
mov dword [edi + 0x201c], 0
mov dword [edi + 0x2018], 0
test eax, eax
je 0x41bfcd
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2020], 0
mov ecx, dword [edi + 0x2f84]
test ecx, ecx
je 0x41c01a
mov eax, dword [0x4674c0]
mov dword [edi + 0x2f80], 0
mov dword [edi + 0x2f7c], 0
test eax, eax
je 0x41c00a
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f84], 0
mov ecx, dword [edi + 0x2f78]
test ecx, ecx
je 0x41c057
mov eax, dword [0x4674c0]
mov dword [edi + 0x2f74], 0
mov dword [edi + 0x2f70], 0
test eax, eax
je 0x41c047
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2f78], 0
cmp dword [edi + 0x2fac], 0
je 0x41c089
mov esi, dword [edi + 0x2fac]
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 0x41c07f
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2fac], 0
mov ecx, dword [edi + 0x2fb8]
test ecx, ecx
je 0x41c0c6
mov eax, dword [0x4674c0]
mov dword [edi + 0x2fb4], 0
mov dword [edi + 0x2fb0], 0
test eax, eax
je 0x41c0b6
dec dword [eax + 0x36c]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x2fb8], 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