Function at 0x10021e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1008500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10086014]
mov edi, eax
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [edi + 0x48]
test ecx, ecx
je 0x10021e6e
cmp byte [edi + 1], 0
je 0x10021e6e
mov byte [ecx + 0x10], 0
mov esi, dword [edi + 0x48]
test esi, esi
je 0x10021e6e
mov ecx, esi
call fcn.1003c290
mov eax, dword [0x10086014]
test eax, eax
je 0x10021e63
dec dword [eax + 0xb0]
push esi
call ebx
mov eax, dword [0x10086014]
add esp, 4
mov dword [edi + 0x48], 0
mov ecx, dword [edi + 0x3bf0]
test ecx, ecx
je 0x10021eb2
mov dword [edi + 0x3bec], 0
mov dword [edi + 0x3be8], 0
test eax, eax
je 0x10021e9d
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [0x10086014]
add esp, 4
mov dword [edi + 0x3bf0], 0
cmp byte [edi], 0
je 0x100227e4
cmp byte [edi + 0x59d5], 0
je 0x10021f19
mov esi, dword [edi + 0x20]
test esi, esi
je 0x10021f19
lea ecx, [ebp - 0x10]
mov dword [eax + 0x59d8], 0
mov dword [ebp - 0x10], 0
call fcn.1002fa70
mov edx, 0x10078d6c
mov dword [ebp - 0x14], eax
mov ecx, esi
call fcn.1001cec0
mov esi, eax
test esi, esi
je 0x10021f19
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 edx, 6
mov ecx, edi
call fcn.1001f000
xor esi, esi
lea ecx, [edi + 0x3de8]
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x3de0], esi
jle 0x10021f73
mov eax, dword [ecx]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10021f68
mov ecx, eax
call fcn.1001e770
mov eax, dword [0x10086014]
test eax, eax
je 0x10021f5a
dec dword [eax + 0xb0]
push dword [ebp - 0x14]
call ebx
add esp, 4
lea ecx, [edi + 0x3de8]
inc esi
cmp esi, dword [edi + 0x3de0]
jl 0x10021f38
jmp 0x10021f76
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x10021fae
mov eax, dword [0x10086014]
mov dword [edi + 0x3de4], 0
mov dword [edi + 0x3de0], 0
test eax, eax
je 0x10021f9f
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
mov ecx, dword [edi + 0x3df4]
test ecx, ecx
je 0x10021feb
mov eax, dword [0x10086014]
mov dword [edi + 0x3df0], 0
mov dword [edi + 0x3dec], 0
test eax, eax
je 0x10021fdb
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3df4], 0
mov ecx, dword [edi + 0x3e00]
test ecx, ecx
je 0x10022028
mov eax, dword [0x10086014]
mov dword [edi + 0x3dfc], 0
mov dword [edi + 0x3df8], 0
test eax, eax
je 0x10022018
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e00], 0
mov dword [edi + 0x3e28], 0
mov ecx, dword [edi + 0x3e0c]
test ecx, ecx
je 0x1002206f
mov eax, dword [0x10086014]
mov dword [edi + 0x3e08], 0
mov dword [edi + 0x3e04], 0
test eax, eax
je 0x1002205f
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e0c], 0
mov ecx, dword [edi + 0x3e18]
test ecx, ecx
je 0x100220ac
mov eax, dword [0x10086014]
mov dword [edi + 0x3e14], 0
mov dword [edi + 0x3e10], 0
test eax, eax
je 0x1002209c
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x3e18], 0
lea ecx, [edi + 0x452c]
mov dword [edi + 0x4794], 0
mov dword [edi + 0x3e30], 0
mov dword [edi + 0x3e2c], 0
mov dword [edi + 0x3e90], 0
mov dword [edi + 0x3e7c], 0
mov dword [edi + 0x3e34], 0
call fcn.1001ac80
mov ecx, dword [edi + 0x472c]
test ecx, ecx
je 0x10022130
mov eax, dword [0x10086014]
mov dword [edi + 0x4728], 0
mov dword [edi + 0x4724], 0
test eax, eax
je 0x10022120
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x472c], 0
mov ecx, dword [edi + 0x4738]
test ecx, ecx
je 0x1002216d
mov eax, dword [0x10086014]
mov dword [edi + 0x4734], 0
mov dword [edi + 0x4730], 0
test eax, eax
je 0x1002215d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4738], 0
mov ecx, dword [edi + 0x4744]
test ecx, ecx
je 0x100221aa
mov eax, dword [0x10086014]
mov dword [edi + 0x4740], 0
mov dword [edi + 0x473c], 0
test eax, eax
je 0x1002219a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4744], 0
mov ecx, dword [edi + 0x4774]
test ecx, ecx
je 0x100221e7
mov eax, dword [0x10086014]
mov dword [edi + 0x4770], 0
mov dword [edi + 0x476c], 0
test eax, eax
je 0x100221d7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4774], 0
mov ecx, dword [edi + 0x4780]
test ecx, ecx
je 0x10022224
mov eax, dword [0x10086014]
mov dword [edi + 0x477c], 0
mov dword [edi + 0x4778], 0
test eax, eax
je 0x10022214
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4780], 0
xor ecx, ecx
lea edx, [edi + 0x4790]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
cmp dword [edi + 0x4788], ecx
jle 0x100222f1
nop
mov eax, dword [edx]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x100222df
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1002227c
mov ecx, eax
call fcn.1001aa10
mov eax, dword [0x10086014]
test eax, eax
je 0x10022274
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x100222a4
mov ecx, eax
call fcn.1001aa10
mov eax, dword [0x10086014]
test eax, eax
je 0x1002229c
dec dword [eax + 0xb0]
push dword [ebp - 0x1c]
call ebx
add esp, 4
push 0x10030810
push 2
push 0xc
lea eax, [esi + 0x64]
mov byte [ebp - 4], 1
push eax
call fcn.10053c42
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x10086014]
test eax, eax
je 0x100222d0
dec dword [eax + 0xb0]
push esi
call ebx
mov ecx, dword [ebp - 0x10]
lea edx, [edi + 0x4790]
add esp, 4
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [edi + 0x4788]
jl 0x10022240
jmp 0x100222f4
mov dword [ebp - 0x14], edx
mov ecx, dword [edx]
test ecx, ecx
je 0x1002232c
mov eax, dword [0x10086014]
mov dword [edi + 0x478c], 0
mov dword [edi + 0x4788], 0
test eax, eax
je 0x1002231d
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x14]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x4a0c]
call fcn.10030870
mov ecx, dword [edi + 0x4a34]
test ecx, ecx
je 0x10022374
mov eax, dword [0x10086014]
mov dword [edi + 0x4a30], 0
mov dword [edi + 0x4a2c], 0
test eax, eax
je 0x10022364
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a34], 0
mov ecx, dword [edi + 0x4a40]
test ecx, ecx
je 0x100223b1
mov eax, dword [0x10086014]
mov dword [edi + 0x4a3c], 0
mov dword [edi + 0x4a38], 0
test eax, eax
je 0x100223a1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a40], 0
xor esi, esi
lea eax, [edi + 0x49b8]
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x49b0], esi
jle 0x10022416
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 0x100223f2
mov eax, dword [0x10086014]
test eax, eax
je 0x100223e9
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 + 0x49b8]
mov dword [ebp - 0x14], ecx
cmp esi, dword [edi + 0x49b0]
jl 0x100223d0
lea eax, [edi + 0x49b8]
jmp 0x10022419
mov dword [ebp - 0x10], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x10022451
mov eax, dword [0x10086014]
mov dword [edi + 0x49b4], 0
mov dword [edi + 0x49b0], 0
test eax, eax
je 0x10022442
dec dword [eax + 0xb0]
push ecx
call ebx
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [eax], 0
lea ecx, [edi + 0x49d0]
call fcn.10030a10
cmp dword [edi + 0x49c4], 0
lea esi, [edi + 0x49cc]
mov dword [ebp - 0x14], 0
jle 0x100224d1
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.1003bc00
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x100224a6
mov eax, dword [0x10086014]
test eax, eax
je 0x100224a0
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov eax, dword [ebp - 0x14]
lea esi, [edi + 0x49cc]
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 + 0x49c4]
jl 0x10022477
lea esi, [edi + 0x49cc]
mov ecx, dword [esi]
test ecx, ecx
je 0x10022506
mov eax, dword [0x10086014]
mov dword [edi + 0x49c8], 0
mov dword [edi + 0x49c4], 0
test eax, eax
je 0x100224fa
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [esi], 0
mov ecx, dword [edi + 0x4a04]
test ecx, ecx
je 0x10022543
mov eax, dword [0x10086014]
mov dword [edi + 0x4a00], 0
mov dword [edi + 0x49fc], 0
test eax, eax
je 0x10022533
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a04], 0
mov ecx, dword [edi + 0x59a4]
test ecx, ecx
je 0x10022580
mov eax, dword [0x10086014]
mov dword [edi + 0x59a0], 0
mov dword [edi + 0x599c], 0
test eax, eax
je 0x10022570
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59a4], 0
mov ecx, dword [edi + 0x59b0]
test ecx, ecx
je 0x100225bd
mov eax, dword [0x10086014]
mov dword [edi + 0x59ac], 0
mov dword [edi + 0x59a8], 0
test eax, eax
je 0x100225ad
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59b0], 0
mov ecx, dword [edi + 0x4a70]
test ecx, ecx
je 0x100225fa
mov eax, dword [0x10086014]
mov dword [edi + 0x4a6c], 0
mov dword [edi + 0x4a68], 0
test eax, eax
je 0x100225ea
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a70], 0
mov ecx, dword [edi + 0x4a7c]
test ecx, ecx
je 0x10022637
mov eax, dword [0x10086014]
mov dword [edi + 0x4a78], 0
mov dword [edi + 0x4a74], 0
test eax, eax
je 0x10022627
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a7c], 0
mov ecx, dword [edi + 0x4a88]
test ecx, ecx
je 0x10022674
mov eax, dword [0x10086014]
mov dword [edi + 0x4a84], 0
mov dword [edi + 0x4a80], 0
test eax, eax
je 0x10022664
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x4a88], 0
mov ecx, dword [edi + 0x59fc]
test ecx, ecx
je 0x100226b1
mov eax, dword [0x10086014]
mov dword [edi + 0x59f8], 0
mov dword [edi + 0x59f4], 0
test eax, eax
je 0x100226a1
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59fc], 0
mov ecx, dword [edi + 0x59f0]
test ecx, ecx
je 0x100226ee
mov eax, dword [0x10086014]
mov dword [edi + 0x59ec], 0
mov dword [edi + 0x59e8], 0
test eax, eax
je 0x100226de
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x59f0], 0
cmp dword [edi + 0x5a40], 0
je 0x10022720
mov esi, dword [edi + 0x5a40]
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 0x10022716
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [edi + 0x5a40], 0
mov ecx, dword [edi + 0x5a4c]
test ecx, ecx
je 0x1002275d
mov eax, dword [0x10086014]
mov dword [edi + 0x5a48], 0
mov dword [edi + 0x5a44], 0
test eax, eax
je 0x1002274d
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a4c], 0
mov ecx, dword [edi + 0x5a78]
test ecx, ecx
je 0x1002279a
mov eax, dword [0x10086014]
mov dword [edi + 0x5a74], 0
mov dword [edi + 0x5a70], 0
test eax, eax
je 0x1002278a
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a78], 0
mov ecx, dword [edi + 0x5a84]
test ecx, ecx
je 0x100227d7
mov eax, dword [0x10086014]
mov dword [edi + 0x5a80], 0
mov dword [edi + 0x5a7c], 0
test eax, eax
je 0x100227c7
dec dword [eax + 0xb0]
push ecx
call ebx
add esp, 4
mov dword [edi + 0x5a84], 0
mov dword [edi + 0x5a88], 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