Function at 0x44287e
Capabilities:
Delete file
Extract resource via kernel32 functions
Get file size
Query environment variable
Read file on windows
Write file on windows

Disassembly:
push ebp
sub esp, 0x5c4
lea ebp, [esp - 4]
mov eax, dword [0x4770c4]
xor eax, ebp
mov dword [ebp + 0x5c4], eax
push 0xa4
mov eax, 0x45d9a6
call fcn.00447bfc
mov eax, dword [ebp + 0x5d0]
mov edi, dword [ebp + 0x5d4]
mov esi, ecx
push 0xffffffffffffffff
xor ebx, ebx
push 0x46c4d4
lea ecx, [ebp + 0x230]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.00412093
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
cmp edi, ebx
jne 0x442aa3
call fcn.0040d905
push eax
lea ecx, [ebp + 0x338]
call fcn.004120b5
mov byte [ebp - 4], 2
call fcn.0040d90b
mov ecx, eax
call fcn.00411e18
test al, al
je 0x4429b9
add esi, 0x524
push esi
lea ecx, [ebp + 0x338]
call fcn.00411e8e
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp + 0x338]
call fcn.00411ca6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x44295b
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.00411cf3
jmp 0x442b27
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x442947
push eax
mov dword [ebp - 0x20], ebx
call fcn.00445c06
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
je 0x4429a2
push edi
call fcn.004463bc
pop ecx
jmp 0x442947
lea eax, [ebp + 0x338]
push eax
lea ecx, [ebp + 0x230]
call fcn.00411e50
jmp 0x442a92
call fcn.0040d90b
push eax
lea ecx, [ebp + 0x338]
call fcn.00411e8e
call fcn.0040d911
test al, al
je 0x4429da
call fcn.0040d917
jmp 0x4429f1
push 2
push ebx
lea ecx, [ebp + 0x338]
call fcn.00411ca6
push eax
call fcn.00419a2e
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x442947
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
add esi, 0x524
push 1
mov ecx, esi
call fcn.00411ca6
push eax
push dword [ebp - 0x10]
call fcn.0041812c
add esp, 0x14
test eax, eax
jne 0x442947
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x442947
push eax
call fcn.00445c06
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.00419a8b
add esp, 0x18
cmp eax, ebx
je 0x442a80
cmp eax, 0x600
je 0x442a80
push edi
call fcn.004463bc
pop ecx
call fcn.0040d911
test al, al
jne 0x442947
push dword [ebp - 0x10]
call fcn.00419ac5
jmp 0x44299f
call fcn.0040d911
test al, al
jne 0x442a92
push dword [ebp - 0x10]
call fcn.00419ac5
pop ecx
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.00411cf3
jmp 0x442b1f
add esi, 0x524
push edi
mov ecx, esi
call fcn.00411ca6
push eax
call fcn.0040d8f6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x442b27
push edi
call fcn.0040d8f6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
push edi
cmp eax, ebx
jne 0x442ae4
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x442b27
call fcn.0040d8f6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x442b27
push eax
call fcn.00445c06
pop ecx
push dword [ebp - 0x14]
mov edi, eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004482b0
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x442baf
mov esi, dword [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push 1
add esi, 0x524
push SysReAllocString
mov ecx, esi
call fcn.00411ca6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x442b9b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x442b9b
push eax
call fcn.00445c06
pop ecx
push ebx
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], ebx
je 0x442b97
push edi
call fcn.004463bc
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x442baf
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push 0x46c4d4
call fcn.00412093
jmp 0x442d0d
lea ecx, [ebp + 0x230]
call fcn.00411e18
test al, al
je 0x442cfe
lea ecx, [ebp + 0x2b4]
call fcn.00411cce
push 0x104
lea eax, [ebp + 0x3bc]
push eax
push str.APPDATA
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x3bc]
push eax
lea ecx, [ebp + 0x2b4]
call fcn.00411e6c
push 1
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp + 0x2b4]
call fcn.00412192
push 0x46c48c
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.004120e8
lea ecx, [ebp - 0xb0]
mov byte [ebp - 0x15], al
mov byte [ebp - 4], 3
call fcn.00411cf3
cmp byte [ebp - 0x15], bl
je 0x442c45
push 0x46c48c
lea ecx, [ebp + 0x2b4]
call fcn.00411ea8
push esi
lea ecx, [ebp + 0x2b4]
call fcn.00411e8e
lea ecx, [ebp + 0x2b4]
call fcn.00411ca6
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
lea ecx, [ebp + 0x2b4]
call fcn.00411ca6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x442cb2
mov ecx, dword [ebp - 0x1c]
push eax
push 0x46c4d4
call fcn.00412093
lea ecx, [ebp + 0x2b4]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
call fcn.00411cf3
jmp 0x442d14
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x230]
cmp dword [ebp - 0x10], ebx
je 0x442ce5
lea eax, [ebp + 0x2b4]
push eax
call fcn.00411e50
jmp 0x442cef
push 0x46c4d4
call fcn.00411e6c
lea ecx, [ebp + 0x2b4]
mov byte [ebp - 4], 1
call fcn.00411cf3
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x230]
push eax
call fcn.004120b5
mov dword [ebp - 0x28], 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.00411cf3
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x5c4]
xor ecx, ebp
call fcn.00445f20
add ebp, 0x5c8
leave
ret 8