Function at 0x1314d50c
Capabilities:
Copy file
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4b
push 0
push 0
dec ecx
jne 0x1314d514
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.131448dc
lea eax, [ebp - 0x1a0]
mov edx, dword [0x13145da4]
call fcn.13144af8
xor eax, eax
push ebp
push 0x1314e1a3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a4]
mov ecx, 0x1314e1bc
mov edx, dword [ebp - 4]
call fcn.13144738
mov eax, dword [ebp - 0x1a4]
lea ecx, [ebp - 0x1a0]
mov edx, 0x3f
call fcn.131469f4
jmp 0x1314e141
mov eax, dword [ebp - 0x194]
mov bl, byte [eax]
cmp bl, 0x2e
jne 0x1314d5a7
lea eax, [ebp - 0x1a8]
mov edx, ebx
call fcn.13144638
mov eax, dword [ebp - 0x1a8]
mov edx, 0x1314e1cc
call fcn.13144838
je 0x1314e0ff
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1ac]
mov eax, 0x1314e1e4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b0]
mov eax, 0x1314e1f4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b4]
mov eax, 0x1314e204
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b8]
mov eax, 0x1314e214
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1bc]
mov eax, 0x1314e224
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c0]
mov eax, 0x1314e234
call fcn.131449d4
test eax, eax
jle 0x1314d7bb
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1c4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c4]
mov eax, 0x1314e244
call fcn.131449d4
test eax, eax
jne 0x1314d7bb
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1c8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c8]
mov eax, 0x1314e254
call fcn.131449d4
test eax, eax
jne 0x1314d7bb
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1cc]
mov eax, 0x1314e268
call fcn.131449d4
test eax, eax
jne 0x1314d7bb
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1d0]
mov eax, 0x1314e274
call fcn.131449d4
test eax, eax
je 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1d4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1d4]
mov eax, 0x1314e280
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1d8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1d8]
mov eax, 0x1314e290
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1dc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1dc]
mov eax, 0x1314e29c
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1e0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1e0]
mov eax, 0x1314e2a8
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1e4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1e4]
mov eax, 0x1314e2b4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1e8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1e8]
mov eax, 0x1314e2c4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1ec]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1ec]
mov eax, 0x1314e2d4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1f0]
mov eax, 0x1314e2e4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1f4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1f4]
mov eax, 0x1314e2f4
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1f8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1f8]
mov eax, 0x1314e300
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x1fc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1fc]
mov eax, 0x1314e310
call fcn.131449d4
test eax, eax
jg 0x1314da75
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x200]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x200]
mov eax, 0x1314e31c
call fcn.131449d4
test eax, eax
jle 0x1314e0ff
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x204]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x204]
mov eax, 0x1314e328
call fcn.131449d4
test eax, eax
jne 0x1314e0ff
xor eax, eax
push ebp
push 0x1314db00
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x208]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x208]
call fcn.131448ec
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.131428c4
mov dword [ebp - 0x48], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x48]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1314db0a
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x48]
call fcn.13144648
lea eax, [ebp - 0x20c]
push eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0x40]
call fcn.1314494c
mov eax, dword [ebp - 0x20c]
mov edx, 0x1314e338
call fcn.13144838
jne 0x1314e0ff
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x210]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x210]
call fcn.131448ec
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x1314e15f
push 0x1314e33c
push 1
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x214]
mov edx, dword [ebp - 0x44]
call fcn.13144648
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
call fcn.1314494c
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 0x38]
mov edx, 0x1314e350
call fcn.13144838
je 0x1314e0ff
push 0
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
push 0x1314e1e4
lea eax, [ebp - 0x218]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x218]
call fcn.131448ec
push eax
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.13142c40
mov ecx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
mov edx, 0x1314e35c
call fcn.13144738
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.1314c470
mov eax, dword [ebp - 0x21c]
call fcn.131448ec
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x228]
call fcn.131448ec
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x14], eax
push 0x10
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
je 0x1314dd28
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
push 0x1314e1e4
lea eax, [ebp - 0x22c]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x22c]
call fcn.131448ec
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x34]
push eax
push 0
push 1
push 0x10
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UpdateResourceA
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_EndUpdateResourceA
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x230]
call fcn.131448ec
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x14], eax
push 3
push 1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314dd90
push 3
push 2
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314dda3
push 3
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314ddb6
push 3
push 4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314ddc9
push 3
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314dddc
push 3
push 6
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314ddef
push 3
push 7
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314de02
push 3
push 8
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314de15
push 3
push 9
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314de28
push 3
push 0xa
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314de3b
push 3
push 0xb
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
jbe 0x1314de4e
push 3
push 0xc
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
mov esi, eax
test esi, esi
ja 0x1314dec7
push 0
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
push 0x1314e1e4
lea eax, [ebp - 0x234]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x234]
call fcn.131448ec
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push 0x1314c660
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_EnumResourceNamesA
mov eax, dword [ebp - 0x1c]
push eax
push 0x1314c660
push 0xe
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_EnumResourceNamesA
push 0
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_EndUpdateResourceA
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
push 0
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
push 0x1314e1e4
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x238]
call fcn.131448ec
push eax
call sub.kernel32.dll_BeginUpdateResourceA
mov dword [ebp - 8], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x23c]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x23c]
call fcn.131448ec
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.131428c4
mov dword [ebp - 0x30], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x3c]
mov edx, 0x1314e350
call fcn.13144504
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
push eax
xor edx, edx
xor eax, eax
call fcn.13145a20
push eax
push 1
push 0x1314e364
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UpdateResourceA
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x244]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x244]
lea edx, [ebp - 0x240]
call fcn.1314bd68
mov eax, dword [ebp - 0x240]
call fcn.131446ec
push eax
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x24c]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x24c]
lea edx, [ebp - 0x248]
call fcn.1314bd68
mov eax, dword [ebp - 0x248]
call fcn.131448ec
push eax
xor edx, edx
xor eax, eax
call fcn.13145a20
push eax
push 1
push 0x1314e36c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UpdateResourceA
mov eax, dword [ebp - 0x3c]
call fcn.131446ec
push eax
mov eax, dword [ebp - 0x3c]
call fcn.131448ec
push eax
xor edx, edx
xor eax, eax
call fcn.13145a20
push eax
push 1
push 0x1314e33c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UpdateResourceA
mov eax, dword [ebp - 0x30]
call fcn.131428f4
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_EndUpdateResourceA
push 0
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x250]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x250]
call fcn.131448ec
push eax
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
push 0x1314e1e4
lea eax, [ebp - 0x254]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x254]
call fcn.131448ec
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
push 0x1314e1e4
lea eax, [ebp - 0x258]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x258]
call fcn.13146a84
mov eax, dword [ebp - 0x198]
and eax, 0x10
cmp eax, 0x10
jne 0x1314e141
mov eax, dword [ebp - 0x194]
cmp byte [eax], 0x2e
je 0x1314e141
push dword [ebp - 4]
push 0x1314e1d8
push dword [ebp - 0x194]
lea eax, [ebp - 0x25c]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x25c]
call fcn.1314d50c
lea eax, [ebp - 0x1a0]
call fcn.13146a44
test eax, eax
je 0x1314d577
lea eax, [ebp - 0x1a0]
call fcn.13146a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314e1aa
lea eax, [ebp - 0x25c]
mov edx, 0x2f
call fcn.13144490
lea eax, [ebp - 0x1a0]
mov edx, dword [0x13145da4]
call fcn.13144bbc
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.13144490
lea eax, [ebp - 4]
call fcn.1314446c
ret