Function at 0x1000a230
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100411a1
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10050fc0]
xor eax, esp
push eax
lea eax, [esp + 0x570]
mov dword fs:[0], eax
xor edi, edi
push 0x103
lea eax, [esp + 0x5d]
push edi
push eax
mov dword [esp + 0x20], edi
mov byte [esp + 0x64], 0
call fcn.10027470
push 0x103
lea ecx, [esp + 0x16d]
push edi
push ecx
mov byte [esp + 0x174], 0
call fcn.10027470
push 0x103
lea edx, [esp + 0x381]
push edi
push edx
mov byte [esp + 0x388], 0
call fcn.10027470
push 0x103
lea eax, [esp + 0x491]
push edi
push eax
mov byte [esp + 0x498], 0
call fcn.10027470
push 1
lea ecx, [esp + 0x70]
push str.prthooko.dll
push ecx
call fcn.10009830
mov esi, 0x10
add esp, 0x3c
cmp dword [eax + 0x18], esi
jb 0x1000a2fa
mov eax, dword [eax + 4]
jmp 0x1000a2fd
add eax, 4
push eax
lea edx, [esp + 0x160]
push 0x100436fc
push edx
call fcn.10028736
add esp, 0xc
cmp dword [esp + 0x54], esi
jb 0x1000a326
mov eax, dword [esp + 0x40]
push eax
call fcn.1001b206
add esp, 4
push 1
lea ecx, [esp + 0x40]
push 0x100443c0
push ecx
call fcn.10009830
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x1000a344
mov eax, dword [eax + 4]
jmp 0x1000a347
add eax, 4
push eax
lea edx, [esp + 0x5c]
push 0x100436fc
push edx
call fcn.10028736
add esp, 0xc
cmp dword [esp + 0x54], esi
jb 0x1000a36d
mov eax, dword [esp + 0x40]
push eax
call fcn.1001b206
add esp, 4
push 1
lea ecx, [esp + 0x40]
push 0x100443c0
push ecx
call fcn.10009830
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x1000a38b
mov eax, dword [eax + 4]
jmp 0x1000a38e
add eax, 4
push eax
lea edx, [esp + 0x368]
push 0x100436fc
push edx
call fcn.10028736
add esp, 0xc
cmp dword [esp + 0x54], esi
jb 0x1000a3b7
mov eax, dword [esp + 0x40]
push eax
call fcn.1001b206
add esp, 4
push 1
lea ecx, [esp + 0x40]
push str.prthooko.dll
push ecx
call fcn.10009830
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x1000a3d5
mov eax, dword [eax + 4]
jmp 0x1000a3d8
add eax, 4
push eax
lea edx, [esp + 0x46c]
push 0x100436fc
push edx
call fcn.10028736
add esp, 0xc
cmp dword [esp + 0x54], esi
jb 0x1000a401
mov eax, dword [esp + 0x40]
push eax
call fcn.1001b206
add esp, 4
lea ecx, [esp + 0x15c]
push ecx
call fcn.10009a60
lea edx, [esp + 0x5c]
push edx
call fcn.10009a60
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
or ebx, 0xffffffff
jmp 0x1000a430
push 0x104
lea eax, [esp + 0x264]
push 0
push eax
call fcn.10027470
lea eax, [esp + 0x370]
add esp, 0xc
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a466
sub eax, ecx
push eax
lea ecx, [esp + 0x368]
push ecx
lea ecx, [esp + 0x44]
call fcn.10006d20
push edi
lea edx, [esp + 0x264]
push 0x100443bc
push edx
mov dword [esp + 0x584], 0
call fcn.10028736
add esp, 0xc
push 1
push ebx
push 0x100443b8
lea ecx, [esp + 0x48]
call fcn.100042f0
lea ecx, [esp + 0x260]
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000a4c0
sub ecx, esi
push ecx
lea ecx, [esp + 0x264]
push ecx
push eax
lea ecx, [esp + 0x48]
call fcn.100072b0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x1000a4eb
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x368]
push 0x100436fc
push edx
call fcn.10028736
add esp, 0xc
lea eax, [esp + 0x364]
push eax
call ebp
lea eax, [esp + 0x468]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a515
sub eax, edx
push eax
lea ecx, [esp + 0x46c]
push ecx
lea ecx, [esp + 0x44]
call fcn.10006d20
push 1
push ebx
push 0x100443b8
lea ecx, [esp + 0x48]
call fcn.100042f0
lea ecx, [esp + 0x260]
lea esi, [ecx + 1]
jmp 0x1000a550
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000a550
sub ecx, esi
push ecx
lea edx, [esp + 0x264]
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.100072b0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x1000a57b
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x46c]
push 0x100436fc
push eax
call fcn.10028736
add esp, 0xc
lea ecx, [esp + 0x468]
push ecx
call ebp
inc edi
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x578], ebx
jb 0x1000a5b7
mov edx, dword [esp + 0x40]
push edx
call fcn.1001b206
add esp, 4
cmp edi, 0xa
jl 0x1000a430
lea eax, [esp + 0x58]
push eax
xor edi, edi
call ebp
test eax, eax
jne 0x1000a787
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x58]
push 0
push ecx
call fcn.1002a3a0
add esp, 8
cmp eax, ebx
je 0x1000a787
push 0x104
lea edx, [esp + 0x264]
push 0
push edx
mov dword [0x100fd3d0], 1
call fcn.10027470
lea eax, [esp + 0x64]
add esp, 0xc
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
lea ecx, [eax + 1]
jmp 0x1000a630
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a630
sub eax, ecx
push eax
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x44]
call fcn.10006d20
push edi
lea ecx, [esp + 0x264]
push 0x100443bc
push ecx
mov dword [esp + 0x584], 1
call fcn.10028736
add esp, 0xc
push 1
push ebx
push 0x100443b8
lea ecx, [esp + 0x48]
call fcn.100042f0
lea ecx, [esp + 0x260]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000a684
sub ecx, esi
push ecx
lea edx, [esp + 0x264]
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.100072b0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x1000a6af
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5c]
push 0x100436fc
push eax
call fcn.10028736
lea eax, [esp + 0x168]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a6d0
sub eax, edx
push eax
lea ecx, [esp + 0x160]
push ecx
lea ecx, [esp + 0x44]
call fcn.10006d20
push 1
push ebx
push 0x100443b8
lea ecx, [esp + 0x48]
call fcn.100042f0
lea ecx, [esp + 0x260]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000a706
sub ecx, esi
push ecx
lea edx, [esp + 0x264]
push edx
push eax
lea ecx, [esp + 0x48]
call fcn.100072b0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x1000a731
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x160]
push 0x100436fc
push eax
call fcn.10028736
add esp, 0xc
push 1
lea ecx, [esp + 0x160]
push ecx
lea edx, [esp + 0x60]
push edx
inc edi
call ebp
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x578], ebx
jb 0x1000a774
mov eax, dword [esp + 0x40]
push eax
call fcn.1001b206
add esp, 4
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1000a5d7
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x15c]
push edx
call esi
lea eax, [esp + 0x58]
push eax
call esi
xor eax, eax
mov cl, byte [esp + eax + 0x58]
mov byte [eax + 0x100fd2c8], cl
inc eax
test cl, cl
jne 0x1000a7a0
push 0x104
lea ecx, [esp + 0x160]
push 0
push ecx
call fcn.10027470
push 1
lea edx, [esp + 0x30]
push 0x100443a8
push edx
call fcn.10009830
mov ebp, 0x10
add esp, 0x18
cmp dword [eax + 0x18], ebp
jb 0x1000a7e6
mov eax, dword [eax + 4]
jmp 0x1000a7e9
add eax, 4
mov edx, eax
jmp 0x1000a7f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a7f0
lea edi, [esp + 0x15c]
sub eax, edx
add edi, ebx
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1000a802
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x38], ebp
jb 0x1000a82d
mov eax, dword [esp + 0x24]
push eax
call fcn.1001b206
add esp, 4
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.10009a60
lea edx, [esp + 0x160]
push edx
call fcn.10009a60
add esp, 8
call fcn.1001b5a1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x1000a876
push 0x80004005
call fcn.100015d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x58]
push 0x100443a4
push ecx
mov dword [esp + 0x580], 2
call fcn.1002a300
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x1000a95e
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [esp + 0x580], 1
mov ebp, eax
push 0x100443a0
jne 0x1000a8d5
push str.IDR_VRV_NT
jmp 0x1000a8da
push str.IDR_VRV_9X
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x1000a943
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000a943
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x1000a913
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x1000a943
mov esi, dword [esp + 0x18]
push esi
push 1
push eax
push ebx
call fcn.1002a1ba
push str.fwrite
call fcn.1000a1a0
push esi
call fcn.10029fdc
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x1000a94e
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
push eax
call fcn.10029fdc
add esp, 4
or ebx, 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x578], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x1000a982
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x570]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.1002742c
add esp, 0x568
ret