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

Disassembly:
push 0xffffffffffffffff
push 0x100b904b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x100d3fe0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d3fe0]
xor eax, esp
push eax
lea eax, [esp + 0x148]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
mov esi, ecx
push eax
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x36]
movzx edx, word [esp + 0x34]
movzx eax, word [esp + 0x32]
push ecx
movzx ecx, word [esp + 0x32]
push edx
movzx edx, word [esp + 0x34]
push eax
push ecx
push edx
lea eax, [esi + 0x10ea0]
push str._4d__02d__02d__02d:_02d
push eax
call fcn.100807c6
add esp, 0x1c
xor ebp, ebp
push 0x104
lea ecx, [esp + 0x44]
mov dword [esi + 0x10484], ebp
mov dword [esi + 0x50], ebp
mov edx, dword [0x100d736c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x40]
push eax
mov ecx, eax
push ecx
call fcn.10033220
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 8
lea edx, [esp + 0x40]
push edx
add esi, 0x10ec0
call edi
mov ebx, eax
push ebx
mov ecx, esi
call fcn.100096e0
test eax, eax
je 0x100430bd
mov ecx, dword [esi]
push ebx
lea eax, [esp + 0x44]
push eax
push ecx
call fcn.1007f6e0
mov edx, dword [esi]
mov dword [edx - 8], ebx
mov eax, dword [esi]
add esp, 0xc
mov byte [ebx + eax], 0
mov ecx, dword [0x100d302c]
mov dword [esp + 0x14], ecx
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x154], ebp
call fcn.100097c0
push 0x100be04c
push 0x100be04c
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call ebp
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call ebx
mov edx, dword [0x100d736c]
push 0x100be548
push 0x65
push edx
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [0x100d736c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x100d736c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x40]
push ecx
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
lea ecx, [esp + 0x18]
call fcn.100097c0
push 0x100be43c
push 0x100be43c
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x14]
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push ecx
call ebx
mov dword [esp + 0x1c], eax
push 0x100be544
mov edx, dword [0x100d736c]
push 0x66
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
mov dword [esp + 0x24], eax
mov eax, dword [0x100d736c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x20]
mov edx, dword [0x100d736c]
push ecx
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
lea ecx, [esp + 0x18]
call fcn.100097c0
push 0x100be42c
push 0x100be42c
call edi
push eax
lea ecx, [esp + 0x1c]
call fcn.100098f0
mov esi, dword [esp + 0x14]
push esi
call ebp
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
call ebx
push 0x100be544
mov edi, eax
mov eax, dword [0x100d736c]
push 0x67
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ecx, dword [0x100d736c]
mov ebx, eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, dword [0x100d736c]
push ebx
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x24]
call fcn.100414d0
lea edx, [esi - 0xc]
cmp edx, dword [0x100d3028]
je 0x100432ea
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100432ea
push esi
call fcn.1007f6d5
add esp, 4
mov ecx, dword [esp + 0x148]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.1007fec9
add esp, 0x140
ret