Function at 0x10ac016
Capabilities:
Check mutex on windows
Query environment variable
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x10b1058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x2b4], 0
and dword [ebp - 0x2ac], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x10a62bc
push 0x10a61f4
push 0xffffffffffffffff
mov dword [ebp - 0x2c0], eax
lea eax, [ebp - 0x4c]
push 0x1d
push eax
mov dword [ebp - 0x2b0], esi
mov dword [ebp - 0x2a8], edi
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2c4], 0xfeff
call fcn.010a937f
add esp, 0x14
lea eax, [ebp - 0x4c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [ebp - 0x2b8], eax
je 0x10acba2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10acba2
test esi, esi
je 0x10ac0ed
test edi, edi
je 0x10ac0ed
cmp dword [0x10b9254], 0
jne 0x10ac0c7
call fcn.010aba0d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac0cc
mov ecx, dword [ebp - 0x2a8]
sub eax, edx
lea esi, [ecx + eax - 4]
push 5
mov edi, 0x10018f0
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10ac100
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xfffffffffffffffe
jmp 0x10acba4
mov edi, dword [ebp - 0x2c0]
xor esi, esi
cmp edi, esi
je 0x10ac111
cmp byte [edi], 0
jne 0x10ac13f
push 0x10a5d8c
call dword [sym.imp.msvcrt.dll_getenv]
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 0x2c0], edi
jne 0x10ac13f
push 0xfffffffffffffffe
pop esi
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10acba5
push 1
push edi
call fcn.010ab0d2
cmp eax, esi
je 0x10ac14f
mov esi, eax
jmp 0x10ac12c
cmp ebx, esi
je 0x10ac15d
mov ebx, dword [ebx]
mov dword [ebp - 0x2ac], ebx
jmp 0x10ac163
mov ebx, dword [ebp - 0x2ac]
push esi
push ebx
call fcn.010ab78c
test eax, eax
jne 0x10ac196
xor ebx, ebx
mov dword [ebp - 0x2ac], ebx
push esi
push ebx
call fcn.010ab78c
test eax, eax
jne 0x10ac18d
inc ebx
cmp ebx, 4
mov dword [ebp - 0x2ac], ebx
jl 0x10ac176
cmp ebx, 4
jne 0x10ac196
push 0xfffffffffffffffb
jmp 0x10ac12b
cmp ebx, 3
jne 0x10ac1b3
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.010abc57
jmp 0x10acba5
cmp ebx, 1
je 0x10ac1c5
cmp ebx, 2
je 0x10ac1c5
cmp ebx, esi
jne 0x10ac129
mov eax, dword [ebp - 0x2b0]
cmp dword [eax + 0x10], esi
je 0x10ac192
mov ecx, edi
call fcn.010abc57
cmp eax, esi
jne 0x10ac14b
cmp edi, esi
jne 0x10ac1e7
xor edx, edx
jmp 0x10ac1f7
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac1ec
sub eax, edx
mov edx, eax
mov eax, dword [ebp - 0x2a8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac200
sub eax, esi
add eax, edx
cmp eax, 0x102
jbe 0x10ac219
push 0xfffffffffffffff5
jmp 0x10ac12b
test edi, edi
jne 0x10ac221
xor eax, eax
jmp 0x10ac22f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac226
sub eax, edx
inc eax
mov esi, 0x104
cmp eax, esi
jae 0x10ac252
test edi, edi
jne 0x10ac241
xor eax, eax
jmp 0x10ac24f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac246
sub eax, edx
inc eax
jmp 0x10ac254
mov eax, esi
push eax
lea eax, [ebp - 0x150]
push edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
test edi, edi
jne 0x10ac26d
xor eax, eax
jmp 0x10ac27b
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac272
sub eax, edx
inc eax
cmp eax, esi
jae 0x10ac299
test edi, edi
jne 0x10ac288
xor eax, eax
jmp 0x10ac296
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac28d
sub eax, edx
inc eax
jmp 0x10ac29b
mov eax, esi
mov byte [ebp + eax - 0x151], 0
lea eax, [ebp - 0x150]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac2ac
sub eax, ecx
mov esi, 0x103
mov edx, esi
push 2
sub edx, eax
pop ecx
cmp edx, ecx
ja 0x10ac2db
lea eax, [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac2ce
sub eax, edx
mov ecx, esi
sub ecx, eax
mov ebx, dword [sym.imp.msvcrt.dll_strncat]
push ecx
lea eax, [ebp - 0x150]
push 0x10a5d84
push eax
call ebx
mov eax, dword [ebp - 0x2a8]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac2fc
sub eax, ecx
mov ecx, eax
lea eax, [ebp - 0x150]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac310
sub eax, edi
mov edx, esi
sub edx, eax
inc ecx
cmp ecx, edx
jae 0x10ac339
mov eax, dword [ebp - 0x2a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac32b
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10ac34f
lea eax, [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac342
sub eax, edx
mov ecx, esi
sub ecx, eax
push ecx
push dword [ebp - 0x2a8]
lea eax, [ebp - 0x150]
push eax
call ebx
lea eax, [ebp - 0x150]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac36b
sub eax, ecx
inc eax
mov esi, 0x104
cmp eax, esi
jae 0x10ac393
lea eax, [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac387
sub eax, edx
inc eax
jmp 0x10ac395
mov eax, esi
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x254]
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 0x150]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac3b5
sub eax, edx
inc eax
cmp eax, esi
jae 0x10ac3d8
lea eax, [ebp - 0x150]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac3cc
sub eax, edx
inc eax
jmp 0x10ac3da
mov eax, esi
mov byte [ebp + eax - 0x255], 0
lea eax, [ebp - 0x254]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac3eb
sub eax, ecx
mov byte [ebp + eax - 0x257], 0x63
lea eax, [ebp - 0x254]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac405
sub eax, ecx
mov byte [ebp + eax - 0x256], 0x61
lea eax, [ebp - 0x254]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac41f
sub eax, ecx
mov byte [ebp + eax - 0x255], 0x74
mov eax, dword [ebp - 0x2a8]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10ac439
sub eax, ecx
inc eax
mov ebx, 0x400
cmp eax, ebx
jae 0x10ac461
mov eax, dword [ebp - 0x2a8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac455
sub eax, edx
inc eax
jmp 0x10ac463
mov eax, ebx
mov edi, dword [ebp - 0x2a8]
push eax
push edi
push 0x10b687c
call sub.msvcrt.dll_memcpy
mov eax, edi
add esp, 0xc
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac47d
sub eax, esi
inc eax
cmp eax, ebx
jae 0x10ac49c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac490
sub eax, edx
inc eax
jmp 0x10ac49e
mov eax, ebx
push edi
mov byte [eax + 0x10b687b], 0
call dword [sym.imp.msvcrt.dll__strdup]
mov esi, eax
test esi, esi
pop ecx
je 0x10ac212
mov eax, edi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac4bc
sub eax, edi
mov byte [eax + esi - 3], 0x63
mov eax, dword [ebp - 0x2a8]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac4d3
sub eax, edi
mov byte [eax + esi - 2], 0x61
mov eax, dword [ebp - 0x2a8]
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac4ea
sub eax, edi
mov byte [eax + esi - 1], 0x74
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac4fd
sub eax, edi
inc eax
cmp eax, ebx
jae 0x10ac51c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac510
sub eax, edx
inc eax
jmp 0x10ac51e
mov eax, ebx
push eax
push esi
push 0x10b6c80
call sub.msvcrt.dll_memcpy
mov eax, esi
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac532
sub eax, edi
inc eax
cmp eax, ebx
jae 0x10ac551
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac545
sub eax, edx
inc eax
jmp 0x10ac553
mov eax, ebx
push esi
mov byte [eax + 0x10b6c7f], 0
call dword [sym.imp.msvcrt.dll_free]
mov esi, dword [ebp - 0x2b0]
mov edi, dword [esi + 0x10]
test edi, edi
pop ecx
jne 0x10ac573
xor eax, eax
jmp 0x10ac581
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac578
sub eax, edx
inc eax
cmp eax, ebx
jae 0x10ac59f
test edi, edi
jne 0x10ac58e
xor eax, eax
jmp 0x10ac59c
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac593
sub eax, edx
inc eax
jmp 0x10ac5a1
mov eax, ebx
push eax
push edi
push 0x10b7084
call sub.msvcrt.dll_memcpy
mov edi, dword [esi + 0x10]
add esp, 0xc
test edi, edi
jne 0x10ac5bb
xor ecx, ecx
jmp 0x10ac5c9
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10ac5c0
sub ecx, edx
inc ecx
cmp ecx, ebx
jae 0x10ac5e7
test edi, edi
jne 0x10ac5d6
xor eax, eax
jmp 0x10ac5e4
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac5db
sub eax, edx
inc eax
jmp 0x10ac5e9
mov eax, ebx
mov byte [eax + 0x10b7083], 0
cmp dword [esi + 8], 0
je 0x10ac61b
movzx eax, byte [esi + 0xc]
push eax
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 4]
push eax
push 0x10a62a0
push ebx
push 0x10b7488
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x18
jmp 0x10ac639
movzx eax, word [esi + 6]
push eax
movzx eax, word [esi + 4]
push eax
push 0x10a628c
push ebx
push 0x10b7488
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x14
mov edi, dword [ebp - 0x2bc]
test edi, edi
je 0x10ac64a
mov eax, dword [edi + 8]
test eax, eax
jne 0x10ac677
lea eax, [ebp - 0x2a4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x2a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010ab925
mov esi, dword [ebp - 0x2b0]
mov edi, dword [ebp - 0x2bc]
push eax
push 0x10016fc
push ebx
push 0x10b788c
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x10
test edi, edi
je 0x10ac707
mov edx, dword [edi + 4]
test edx, edx
je 0x10ac707
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac69c
sub eax, esi
inc eax
cmp eax, ebx
jae 0x10ac6bb
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac6af
sub eax, esi
inc eax
jmp 0x10ac6bd
mov eax, ebx
push eax
push edx
push 0x10b7c90
call sub.msvcrt.dll_memcpy
mov esi, dword [edi + 4]
add esp, 0xc
test esi, esi
jne 0x10ac6d7
xor ecx, ecx
jmp 0x10ac6e5
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10ac6dc
sub ecx, edx
inc ecx
cmp ecx, ebx
jae 0x10ac78d
test esi, esi
je 0x10ac778
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac6fb
jmp 0x10ac788
movzx eax, word [esi + 4]
push eax
call fcn.010aab43
mov esi, eax
test esi, esi
jne 0x10ac71c
mov esi, 0x10a6278
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac721
sub eax, edx
inc eax
cmp eax, ebx
jae 0x10ac748
test esi, esi
jne 0x10ac737
xor eax, eax
jmp 0x10ac745
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac73c
sub eax, edx
inc eax
jmp 0x10ac74a
mov eax, ebx
push eax
push esi
push 0x10b7c90
call sub.msvcrt.dll_memcpy
add esp, 0xc
test esi, esi
jne 0x10ac761
xor eax, eax
jmp 0x10ac76f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac766
sub eax, edx
inc eax
cmp eax, ebx
jae 0x10ac78d
test esi, esi
jne 0x10ac77c
xor eax, eax
jmp 0x10ac78a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10ac781
sub eax, edx
inc eax
jmp 0x10ac78f
mov eax, ebx
mov edi, dword [ebp - 0x2ac]
test edi, edi
mov byte [eax + 0x10b7c8f], 0
jge 0x10ac7ac
cmp edi, 3
jbe 0x10ac7ac
push 0xffffffffffffff9d
jmp 0x10ac12b
mov esi, edi
imul esi, esi, 0x34
mov eax, dword [esi + 0x10b928c]
test eax, eax
mov ecx, dword [esi + 0x10b9290]
mov dword [ebp - 0x2cc], eax
mov dword [ebp - 0x2d0], ecx
jne 0x10ac7d1
test ecx, ecx
je 0x10ac801
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10ac801
lea eax, [ebp - 0x2e0]
push eax
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10ac80e
lea eax, [ebp - 0x2e0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x2e0]
push eax
movzx eax, word [ebp - 0x2da]
push eax
movzx eax, word [ebp - 0x2de]
push eax
push 0x10a6268
push ebx
push 0x10b8094
call dword [sym.imp.msvcrt.dll__snprintf]
mov eax, dword [esi + 0x10b926c]
mov esi, dword [esi + 0x10b9268]
mov edx, eax
mov ecx, 0xffff
and edx, ecx
push edx
sar eax, 0x10
push eax
mov eax, esi
and eax, ecx
push eax
sar esi, 0x10
push esi
push 0x10a625c
push ebx
push 0x10b8498
call dword [sym.imp.msvcrt.dll__snprintf]
add esp, 0x34
push 0
mov eax, 0x10a6258
push eax
push eax
push 0x10b6878
lea eax, [ebp - 0x2b4]
shl edi, 2
push eax
push dword [edi + 0x10b8cb0]
mov dword [ebp - 0x2b0], edi
call fcn.010abf93
test eax, eax
jle 0x10ac8b2
push 0x10a5d88
lea eax, [ebp - 0x150]
push eax
call fcn.010ab299
mov ebx, eax
test ebx, ebx
jne 0x10ac8b9
push 0xfffffffffffffffd
jmp 0x10ac12b
push dword [ebp - 0x2b4]
call fcn.010aabe5
mov edi, eax
test edi, edi
jne 0x10ac8ee
cmp dword [ebp - 0x2b4], eax
je 0x10ac212
push dword [ebp - 0x2b4]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x2b4], edi
pop ecx
jmp 0x10ac212
mov esi, dword [sym.imp.msvcrt.dll_fwrite]
push ebx
push 1
lea eax, [ebp - 0x2c4]
push 2
push eax
call esi
mov eax, edi
add esp, 0x10
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x10ac90a
sub eax, ecx
push ebx
sar eax, 1
push eax
push 2
push edi
call esi
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 0x18
cmp dword [ebp - 0x2b4], 0
je 0x10ac94d
push dword [ebp - 0x2b4]
call dword [sym.imp.msvcrt.dll_free]
and dword [ebp - 0x2b4], 0
pop ecx
mov eax, dword [ebp - 0x2bc]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
je 0x10ac961
xor esi, esi
jmp 0x10ac12c
cmp dword [0x10b92fc], ebx
jne 0x10ac96e
call fcn.010aaf50
mov eax, dword [0x10b9300]
cmp eax, ebx
jne 0x10ac993
push 0x10a6248
push 0x10a6240
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10b9300], eax
cmp dword [0x10b92fc], 5
jl 0x10acb92
cmp eax, ebx
je 0x10acb92
call eax
test eax, eax
je 0x10acb92
xor esi, esi
mov edi, 0x10a5b94
mov eax, dword [edi - 4]
cmp byte [eax], 0
jne 0x10ac9f6
mov eax, dword [ebp - 0x2b0]
mov ecx, dword [eax + 0x10b8cbc]
mov eax, dword [edi]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10ac9ed
test dl, dl
je 0x10ac9e9
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10ac9ed
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x10ac9cf
xor eax, eax
jmp 0x10ac9f2
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10aca02
add edi, 0x20
inc esi
cmp edi, 0x10a5d74
jl 0x10ac9b9
cmp esi, 0xf
jge 0x10ac192
shl esi, 5
mov eax, dword [esi + 0x10a5b98]
inc eax
push eax
mov dword [ebp - 0x2ac], ebx
call dword [sym.imp.msvcrt.dll_malloc]
cmp eax, ebx
pop ecx
mov dword [ebp - 0x2b0], eax
je 0x10ac212
push dword [esi + 0x10a5b98]
mov edi, eax
push dword [esi + 0x10a5ba8]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x10a5b98]
mov ebx, dword [sym.imp.msvcrt.dll_strtok]
push 0x10a623c
push edi
mov byte [edi + eax], 0
call ebx
mov edi, dword [sym.imp.msvcrt.dll_isspace]
add esp, 0x14
mov esi, eax
jmp 0x10aca6b
inc esi
movsx eax, byte [esi]
push eax
call edi
test eax, eax
pop ecx
jne 0x10aca6a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10aca7b
sub eax, edx
je 0x10acac3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10aca8b
sub eax, edx
movsx eax, byte [eax + esi - 1]
push eax
call edi
test eax, eax
pop ecx
je 0x10acac3
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10acaa6
sub eax, ecx
mov byte [eax + esi - 1], dl
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10acab8
sub eax, ecx
jne 0x10aca86
mov al, byte [esi]
cmp al, 0x23
je 0x10acae9
test al, al
je 0x10acae9
mov eax, dword [ebp - 0x2ac]
inc dword [ebp - 0x2ac]
cmp dword [ebp - 0x2ac], 0x10
mov dword [ebp + eax*4 - 0x32c], esi
jge 0x10acafe
push 0x10a623c
push 0
call ebx
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x10aca6b
mov eax, dword [ebp - 0x2a8]
mov edi, dword [ebp - 0x2ac]
mov esi, dword [sym.imp.msvcrt.dll_sprintf]
push 0x10b7488
mov dword [ebp + edi*4 - 0x32c], eax
lea eax, [ebp - 0x2c]
push 0x10a6234
push eax
call esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x294]
push 0x10a6214
push eax
call esi
add esp, 0x18
inc edi
push edi
lea eax, [ebp - 0x32c]
push eax
push dword [ebp - 0x2c0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.010af1e0
test eax, eax
je 0x10acb85
mov eax, dword [ebp - 0x2bc]
cmp dword [eax + 0x10], 0
jne 0x10acb85
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x10acb78
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.010ae743
push dword [ebp - 0x2b0]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 0x2b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10acba5
push 0xfffffffffffffffa
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010a919f
leave
ret 0x10