Function at 0x4531afcd
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4536269a
call fcn.4534228c
sub esp, 0x21c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [edi + 0x804]
test esi, esi
je 0x4531b008
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4531b003
mov esi, dword [esi + 0x18]
jmp 0x4531afeb
mov dword [ebp - 0x10], esi
jmp 0x4531b00f
and dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4531b3b2
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
test eax, eax
mov dword [ebp - 0x18], ebx
je 0x4531b02f
xor ecx, ecx
cmp byte [eax], cl
sete cl
mov eax, ecx
jmp 0x4531b032
push 1
pop eax
test eax, eax
je 0x4531b04d
cmp dword [esi + 0x14], 0
jne 0x4531b04d
push dword [ebp + 8]
push 0x20bc3
push edi
call fcn.4531deee
add esp, 0xc
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
test eax, eax
mov dword [ebp - 0x1c], edi
je 0x4531b065
xor ecx, ecx
cmp byte [eax], cl
sete cl
mov eax, ecx
jmp 0x4531b068
push 1
pop eax
test eax, eax
je 0x4531b07f
push dword [ebp + 8]
push 0x20bc4
push dword [ebp - 0x14]
call fcn.4531deee
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x4531b090
xor ecx, ecx
cmp byte [eax], cl
sete cl
mov eax, ecx
jmp 0x4531b093
push 1
pop eax
test eax, eax
je 0x4531b0a1
cmp dword [esi + 0x14], 0
je 0x4531b3c3
cmp dword [ebx], 0
mov esi, 0x453636e4
jne 0x4531b0c6
push esi
call sym.HHA.dll_Ordinal_23
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
test eax, eax
je 0x4531b0c1
push eax
call fcn.45341e40
pop ecx
mov eax, dword [ebp - 0x20]
mov dword [ebx], eax
cmp dword [edi], 0
jne 0x4531b0e2
push esi
call sym.HHA.dll_Ordinal_23
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x4531b0e0
push eax
call fcn.45341e40
pop ecx
mov dword [edi], esi
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 0
jne 0x4531b140
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x78]
test eax, eax
je 0x4531b100
xor ecx, ecx
cmp byte [eax], cl
sete cl
mov eax, ecx
jmp 0x4531b103
push 1
pop eax
cmp eax, 1
jne 0x4531b116
push dword [ebp + 8]
push 0x20bc2
push esi
jmp 0x4531b3bb
mov edi, dword [esi + 0x78]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebx]
jmp 0x4531b16b
mov edi, str.samples
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push dword [ebp + 8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x124]
push eax
call fcn.45321e5f
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
call fcn.45342660
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x4531b19c
mov dword [eax], ebx
mov ebx, eax
push str._Options__nDefaultPath
call sym.HHA.dll_Ordinal_23
mov esi, eax
mov eax, dword [ebx]
test eax, eax
je 0x4531b1b5
push eax
call fcn.45341e40
pop ecx
push dword [ebp - 0x1c]
mov ecx, ebx
mov dword [ebx], esi
call fcn.4530c8fb
push str._nSampleDir
mov ecx, ebx
call fcn.45311153
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.4530c8fb
push str._n_n_Files__n
mov ecx, ebx
call fcn.45311153
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
push ebx
lea eax, [ebp - 0x124]
push edi
push eax
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.4531b3d4
test eax, eax
jge 0x4531b21c
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
push 0x20bbf
push esi
call fcn.4531deee
add esp, 0x10
cmp dword [edi + 0x14], 0
je 0x4531b2dd
push dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
call fcn.45321e5f
mov edi, str..sfl
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x110
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.45342660
pop ecx
mov dword [ebp + 8], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4531b28f
mov ecx, dword [ebp - 0x14]
push dword [ecx + 0x4e0]
mov ecx, eax
call fcn.45322bf1
mov esi, eax
jmp 0x4531b291
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x124]
push eax
mov ecx, esi
call fcn.45322c35
mov ebx, dword [ebx]
test ebx, ebx
je 0x4531b2b7
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4531b2b9
xor ecx, ecx
push ecx
push ebx
mov ecx, esi
call fcn.453231ff
test esi, esi
je 0x4531b3c3
mov ecx, esi
call fcn.45322c07
push esi
call fcn.45341eb0
pop ecx
jmp 0x4531b3c3
mov edi, dword [esi + 0x78]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x45366908
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x124]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.45321e5f
lea eax, [ebp - 0x124]
push eax
call fcn.45321df7
push dword [ebp + 8]
lea eax, [ebp - 0x124]
push eax
call fcn.45321e5f
mov edi, str..sfl
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x124]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x124]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push esi
push 2
push esi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4531b3c3
mov ebx, dword [ebx]
cmp ebx, esi
je 0x4531b395
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x4531b397
xor ecx, ecx
lea eax, [ebp - 0x18]
push esi
push eax
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4531b3c3
push dword [ebp + 8]
push 0x20bc0
push edi
call fcn.4531deee
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4