Function at 0x100b3490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101a18a0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
test eax, eax
je 0x100b3588
cmp byte [edi + 1], 0
je 0x100b3588
mov byte [eax + 0x10], 0
mov esi, dword [edi + 0x98]
test esi, esi
je 0x100b3588
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.100c6040
mov byte [ebp - 4], 1
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x100b3511
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b3502
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x100b353a
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b352b
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100b3563
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b3554
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b3579
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push esi
call fcn.100adb70
add esp, 8
cmp byte [edi], 0
mov dword [edi + 0x98], 0
je 0x100b3e7a
cmp byte [edi + 0x2f1d], 0
je 0x100b360b
mov esi, dword [edi + 0x20]
test esi, esi
je 0x100b360b
mov ebx, dword [0x1026a4b8]
lea ecx, [ebp - 0x10]
mov dword [0x1026a4b8], edi
mov dword [edi + 0x2f20], 0
mov dword [ebp - 0x10], 0
call fcn.100c02c0
mov edx, 0x102467e0
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.100ae380
mov esi, eax
test esi, esi
je 0x100b3605
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 dword [0x1026a4b8], ebx
mov edx, 6
mov ecx, edi
call fcn.100b0e20
xor esi, esi
cmp dword [edi + 0x1b64], esi
jle 0x100b365c
mov eax, dword [edi + 0x1b6c]
mov ebx, dword [eax + esi*4]
test ebx, ebx
je 0x100b3653
mov ecx, ebx
call fcn.100b07b0
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b3644
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ebx
call fcn.100adb70
add esp, 8
inc esi
cmp esi, dword [edi + 0x1b64]
jl 0x100b3621
mov ecx, dword [edi + 0x1b6c]
test ecx, ecx
je 0x100b36a2
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1b68], 0
mov dword [edi + 0x1b64], 0
test eax, eax
je 0x100b3689
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1b6c], 0
mov ecx, dword [edi + 0x1b78]
test ecx, ecx
je 0x100b36e8
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1b74], 0
mov dword [edi + 0x1b70], 0
test eax, eax
je 0x100b36cf
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1b78], 0
mov ecx, dword [edi + 0x1b84]
test ecx, ecx
je 0x100b372e
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1b80], 0
mov dword [edi + 0x1b7c], 0
test eax, eax
je 0x100b3715
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1b84], 0
mov dword [edi + 0x1bac], 0
mov ecx, dword [edi + 0x1b90]
test ecx, ecx
je 0x100b377e
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1b8c], 0
mov dword [edi + 0x1b88], 0
test eax, eax
je 0x100b3765
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1b90], 0
mov ecx, dword [edi + 0x1b9c]
test ecx, ecx
je 0x100b37c4
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1b98], 0
mov dword [edi + 0x1b94], 0
test eax, eax
je 0x100b37ab
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1b9c], 0
mov dword [edi + 0x1d44], 0
mov dword [edi + 0x1bb4], 0
mov dword [edi + 0x1bb0], 0
mov dword [edi + 0x1c24], 0
mov dword [edi + 0x1c10], 0
mov dword [edi + 0x1bb8], 0
mov ecx, dword [edi + 0x1ce0]
test ecx, ecx
je 0x100b3846
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1cdc], 0
mov dword [edi + 0x1cd8], 0
test eax, eax
je 0x100b382d
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1ce0], 0
mov ecx, dword [edi + 0x1cec]
test ecx, ecx
je 0x100b388c
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1ce8], 0
mov dword [edi + 0x1ce4], 0
test eax, eax
je 0x100b3873
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1cec], 0
mov ecx, dword [edi + 0x1cf8]
test ecx, ecx
je 0x100b38d2
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1cf4], 0
mov dword [edi + 0x1cf0], 0
test eax, eax
je 0x100b38b9
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1cf8], 0
mov ecx, dword [edi + 0x1d28]
test ecx, ecx
je 0x100b3918
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1d24], 0
mov dword [edi + 0x1d20], 0
test eax, eax
je 0x100b38ff
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1d28], 0
mov ecx, dword [edi + 0x1d34]
test ecx, ecx
je 0x100b395e
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1d30], 0
mov dword [edi + 0x1d2c], 0
test eax, eax
je 0x100b3945
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1d34], 0
xor ebx, ebx
cmp dword [edi + 0x1d38], ebx
jle 0x100b3a32
nop dword [eax]
mov eax, dword [edi + 0x1d40]
mov esi, dword [eax + ebx*4]
test esi, esi
je 0x100b3a25
mov dword [ebp - 4], 4
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100b39b9
mov ecx, eax
call fcn.100ac730
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b39a8
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push dword [ebp - 0x14]
call fcn.100adb70
add esp, 8
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100b39ea
mov ecx, eax
call fcn.100ac730
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b39d9
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push dword [ebp - 0x14]
call fcn.100adb70
add esp, 8
push 0x100c0a20
push 2
push 0xc
lea eax, [esi + 0x60]
mov byte [ebp - 4], 5
push eax
call fcn.1019a70b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b3a16
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push esi
call fcn.100adb70
add esp, 8
inc ebx
cmp ebx, dword [edi + 0x1d38]
jl 0x100b3970
mov ecx, dword [edi + 0x1d40]
test ecx, ecx
je 0x100b3a78
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1d3c], 0
mov dword [edi + 0x1d38], 0
test eax, eax
je 0x100b3a5f
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1d40], 0
lea ecx, [edi + 0x1f68]
call fcn.100c0b40
mov ecx, dword [edi + 0x1f90]
test ecx, ecx
je 0x100b3ac9
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1f8c], 0
mov dword [edi + 0x1f88], 0
test eax, eax
je 0x100b3ab0
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1f90], 0
mov ecx, dword [edi + 0x1f9c]
test ecx, ecx
je 0x100b3b0f
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1f98], 0
mov dword [edi + 0x1f94], 0
test eax, eax
je 0x100b3af6
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1f9c], 0
lea ecx, [edi + 0x1f20]
call fcn.100c0d10
xor ebx, ebx
cmp dword [edi + 0x1f40], ebx
jle 0x100b3b89
xor ecx, ecx
mov dword [ebp - 0x10], ecx
nop dword [eax]
mov esi, dword [edi + 0x1f48]
add esi, ecx
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 6
call fcn.100c57c0
mov byte [ebp - 4], 7
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100b3b70
mov eax, dword [0x1026a4b8]
test eax, eax
je 0x100b3b61
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [ebp - 4], 0xffffffff
inc ebx
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
mov dword [ebp - 0x10], ecx
cmp ebx, dword [edi + 0x1f40]
jl 0x100b3b30
mov ecx, dword [edi + 0x1f48]
test ecx, ecx
je 0x100b3bcf
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1f44], 0
mov dword [edi + 0x1f40], 0
test eax, eax
je 0x100b3bb6
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1f48], 0
mov ecx, dword [edi + 0x1f60]
test ecx, ecx
je 0x100b3c15
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1f5c], 0
mov dword [edi + 0x1f58], 0
test eax, eax
je 0x100b3bfc
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1f60], 0
mov ecx, dword [edi + 0x2efc]
test ecx, ecx
je 0x100b3c5b
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x2ef8], 0
mov dword [edi + 0x2ef4], 0
test eax, eax
je 0x100b3c42
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x2efc], 0
mov ecx, dword [edi + 0x2f08]
test ecx, ecx
je 0x100b3ca1
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x2f04], 0
mov dword [edi + 0x2f00], 0
test eax, eax
je 0x100b3c88
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x2f08], 0
mov ecx, dword [edi + 0x1fbc]
test ecx, ecx
je 0x100b3ce7
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1fb8], 0
mov dword [edi + 0x1fb4], 0
test eax, eax
je 0x100b3cce
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1fbc], 0
mov ecx, dword [edi + 0x1fc8]
test ecx, ecx
je 0x100b3d2d
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1fc4], 0
mov dword [edi + 0x1fc0], 0
test eax, eax
je 0x100b3d14
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1fc8], 0
mov ecx, dword [edi + 0x1fd4]
test ecx, ecx
je 0x100b3d73
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x1fd0], 0
mov dword [edi + 0x1fcc], 0
test eax, eax
je 0x100b3d5a
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x1fd4], 0
mov ecx, dword [edi + 0x2f44]
test ecx, ecx
je 0x100b3db9
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x2f40], 0
mov dword [edi + 0x2f3c], 0
test eax, eax
je 0x100b3da0
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x2f44], 0
mov ecx, dword [edi + 0x2f38]
test ecx, ecx
je 0x100b3dff
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x2f34], 0
mov dword [edi + 0x2f30], 0
test eax, eax
je 0x100b3de6
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x2f38], 0
cmp dword [edi + 0x2f6c], 0
je 0x100b3e31
mov esi, dword [edi + 0x2f6c]
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 0x100b3e27
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x2f6c], 0
mov ecx, dword [edi + 0x2f78]
test ecx, ecx
je 0x100b3e77
mov eax, dword [0x1026a4b8]
mov dword [edi + 0x2f74], 0
mov dword [edi + 0x2f70], 0
test eax, eax
je 0x100b3e5e
dec dword [eax + 0x370]
push dword [0x1026a4b4]
push ecx
call fcn.100adb70
add esp, 8
mov dword [edi + 0x2f78], 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