Function at 0x4433c9
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 [0x476110]
xor eax, ebp
mov dword [ebp + 0x5c4], eax
push 0xa4
mov eax, 0x45d399
call fcn.004485cd
mov eax, dword [ebp + 0x5d0]
mov edi, dword [ebp + 0x5d4]
mov esi, ecx
push 0xffffffffffffffff
xor ebx, ebx
push 0x46b4ac
lea ecx, [ebp + 0x230]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], ebx
call fcn.00412c6e
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], ebx
cmp edi, ebx
jne 0x4435ee
call fcn.0040e4df
push eax
lea ecx, [ebp + 0x338]
call fcn.00412c90
mov byte [ebp - 4], 2
call fcn.0040e4e5
mov ecx, eax
call fcn.004129f3
test al, al
je 0x443504
add esi, 0x524
push esi
lea ecx, [ebp + 0x338]
call fcn.00412a69
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
lea ecx, [ebp + 0x338]
call fcn.0040e691
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4434a6
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.004128ce
jmp 0x443672
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x443492
push eax
mov dword [ebp - 0x20], ebx
call fcn.0040e14b
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 0x4434ed
push edi
call fcn.00446d3c
pop ecx
jmp 0x443492
lea eax, [ebp + 0x338]
push eax
lea ecx, [ebp + 0x230]
call fcn.00412a2b
jmp 0x4435dd
call fcn.0040e4e5
push eax
lea ecx, [ebp + 0x338]
call fcn.00412a69
call fcn.0040e4eb
test al, al
je 0x443525
call fcn.0040e4f1
jmp 0x44353c
push 2
push ebx
lea ecx, [ebp + 0x338]
call fcn.0040e691
push eax
call fcn.0041a584
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x443492
lea eax, [ebp]
push eax
lea eax, [ebp - 0x24]
push eax
add esi, 0x524
push 1
mov ecx, esi
call fcn.0040e691
push eax
push dword [ebp - 0x10]
call fcn.00418c82
add esp, 0x14
test eax, eax
jne 0x443492
mov eax, dword [ebp + 0x22c]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x443492
push eax
call fcn.0040e14b
push 3
push dword [ebp - 0x14]
mov edi, eax
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x10]
call fcn.0041a5e1
add esp, 0x18
cmp eax, ebx
je 0x4435cb
cmp eax, 0x600
je 0x4435cb
push edi
call fcn.00446d3c
pop ecx
call fcn.0040e4eb
test al, al
jne 0x443492
push dword [ebp - 0x10]
call fcn.0041a61b
jmp 0x4434ea
call fcn.0040e4eb
test al, al
jne 0x4435dd
push dword [ebp - 0x10]
call fcn.0041a61b
pop ecx
lea ecx, [ebp + 0x338]
mov byte [ebp - 4], 1
call fcn.004128ce
jmp 0x44366a
add esi, 0x524
push edi
mov ecx, esi
call fcn.0040e691
push eax
call fcn.0040e4d0
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x443672
push edi
call fcn.0040e4d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
push edi
cmp eax, ebx
jne 0x44362f
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x443672
call fcn.0040e4d0
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x443672
push eax
call fcn.0040e14b
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.00449e20
add esp, 0xc
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x4436fa
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.0040e691
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x4436e6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x4436e6
push eax
call fcn.0040e14b
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 0x4436e2
push edi
call fcn.00446d3c
pop ecx
xor edi, edi
cmp edi, ebx
jne 0x4436fa
mov ecx, dword [ebp - 0x1c]
push 0xffffffffffffffff
push 0x46b4ac
call fcn.00412c6e
jmp 0x443858
lea ecx, [ebp + 0x230]
call fcn.004129f3
test al, al
je 0x443849
lea ecx, [ebp + 0x2b4]
call fcn.004128a9
push 0x104
lea eax, [ebp + 0x3bc]
push eax
push 0x468c80
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp + 0x3bc]
push eax
lea ecx, [ebp + 0x2b4]
call fcn.00412a47
push 1
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp + 0x2b4]
call fcn.00412d6d
push 0x46b464
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00412cc3
lea ecx, [ebp - 0xb0]
mov byte [ebp - 0x15], al
mov byte [ebp - 4], 3
call fcn.004128ce
cmp byte [ebp - 0x15], bl
je 0x443790
push 0x46b464
lea ecx, [ebp + 0x2b4]
call fcn.00412a83
push esi
lea ecx, [ebp + 0x2b4]
call fcn.00412a69
lea ecx, [ebp + 0x2b4]
call fcn.0040e691
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.0040e691
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4437fd
mov ecx, dword [ebp - 0x1c]
push eax
push 0x46b4ac
call fcn.00412c6e
lea ecx, [ebp + 0x2b4]
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
call fcn.004128ce
jmp 0x44385f
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 0x443830
lea eax, [ebp + 0x2b4]
push eax
call fcn.00412a2b
jmp 0x44383a
push 0x46b4ac
call fcn.00412a47
lea ecx, [ebp + 0x2b4]
mov byte [ebp - 4], 1
call fcn.004128ce
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0x230]
push eax
call fcn.00412c90
mov dword [ebp - 0x28], 1
lea ecx, [ebp + 0x230]
mov byte [ebp - 4], bl
call fcn.004128ce
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.004468a0
add ebp, 0x5c8
leave
ret 8