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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5d0ee0
push eax
mov dword fs:[0], esp
sub esp, 0x194
mov ecx, 0x8802b0
push ebx
push ebp
push esi
push edi
call fcn.0054a8e0
xor ebp, ebp
mov edi, 1
cmp eax, ebp
je 0x415cff
push edi
push ebp
mov ecx, eax
call fcn.00547d80
test eax, eax
je 0x415cff
lea ecx, [esp + 0x80]
call fcn.0041b1a0
lea ecx, [esp + 0x8c]
mov dword [esp + 0x1ac], 0xb
call fcn.0041b1a0
lea ecx, [esp + 0x98]
mov byte [esp + 0x1ac], 0xc
call fcn.0041b1a0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1ac], 0xd
call fcn.0041b1a0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x1ac], 0xe
call fcn.0041b1a0
push 0x87f5fc
lea ecx, [esp + 0x80]
mov byte [esp + 0x1b0], 0xf
call fcn.00401750
lea eax, [esp + 0x80]
lea ecx, [esp + 0xb0]
push eax
mov dword [esp + 0x1b0], 0x10
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0xb4]
call fcn.00405b40
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0xb4]
call fcn.004018e0
mov edx, dword [esp + 0x8c]
cmp word [edx], bp
je 0x415610
push 0x5c
lea ecx, [esp + 0xb4]
call fcn.00405b40
lea eax, [esp + 0x8c]
lea ecx, [esp + 0xb0]
push eax
call fcn.004018e0
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x70], ebp
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x70], ebp
call fcn.00401510
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x6c]
mov cx, word [edx]
cmp cx, bp
je 0x415651
add edx, 2
mov word [eax], cx
add eax, 2
mov cx, word [edx]
cmp cx, bp
jne 0x415640
mov word [eax], bp
mov ecx, dword [esp + 0x6c]
sub eax, ecx
sar eax, 1
mov dword [esp + 0x74], eax
push 0x20
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b0], 0x11
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
call fcn.00401510
lea ecx, [esp + 0x110]
mov byte [esp + 0x1ac], 0x12
call fcn.0041b6e0
lea ecx, [esp + 0x13c]
mov byte [esp + 0x1ac], 0x13
call fcn.00419f90
push str.UTF_8
lea ecx, [esp + 0x140]
mov byte [esp + 0x1b0], 0x14
mov dword [esp + 0x130], ebp
mov dword [esp + 0x13c], ebp
call fcn.0041a280
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], ebp
push str.LayerPara.xml
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b0], 0x15
mov word [edx], bp
call fcn.00401610
cmp dword [esp + 0x28], ebp
je 0x415748
lea eax, [esp + 0x20]
lea ecx, [esp + 0x8c]
push eax
mov dword [esp + 0x80], edi
call fcn.00405c40
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xa0], ebp
push 0x2e
mov word [ecx], bp
lea ecx, [esp + 0x90]
call fcn.004015e0
cmp eax, ebp
jle 0x41576e
lea edx, [esp + 0x98]
inc eax
push edx
push eax
lea ecx, [esp + 0x94]
call fcn.00401350
jmp 0x41576e
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x94], ebp
mov word [eax], bp
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xa0], ebp
mov word [ecx], bp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x409
mov esi, eax
push 0x130
push 0x6380c0
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
mov ebx, eax
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
je 0x41585c
cmp ebx, 4
jb 0x41585c
lea ecx, [esp + 0x110]
call fcn.0041ba00
push 0x64
lea ecx, [esp + 0x18]
call fcn.0041c320
lea eax, [esp + 0x110]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x1b0], 0x16
call fcn.0041c350
mov cx, word [edi]
xor esi, esi
and ecx, 0xfefe
cmp ecx, 0xfefe
jne 0x41580d
mov esi, 2
jmp 0x415823
cmp byte [edi], 0xef
jne 0x415823
cmp byte [edi + 1], 0xbb
jne 0x415823
cmp byte [edi + 2], 0xbf
jne 0x415823
mov esi, 3
cmp esi, ebx
jae 0x415847
mov eax, ebx
lea edx, [esp + 0x14]
sub eax, esi
push edx
lea ecx, [esi + edi]
push eax
push ecx
lea ecx, [esp + 0x11c]
call fcn.0041bbd0
add esi, eax
cmp esi, ebx
jb 0x415827
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x1ac], 0x15
push edx
call fcn.005b44c3
add esp, 4
lea eax, [esp + 0x110]
mov ecx, 0x8802b0
push eax
call fcn.0054b410
lea ecx, [esp + 0xd4]
call fcn.0041b1a0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x1ac], 0x17
call fcn.0041b1a0
lea ecx, [esp + 0xec]
mov byte [esp + 0x1ac], 0x18
call fcn.0041b1a0
lea ecx, [esp + 0xf8]
mov byte [esp + 0x1ac], 0x19
call fcn.0041b1a0
lea ecx, [esp + 0x104]
mov byte [esp + 0x1ac], 0x1a
call fcn.0041b1a0
push 0x87f5fc
lea ecx, [esp + 0xd4]
mov byte [esp + 0x1b0], 0x1b
call fcn.00401750
push str.Graphic_lib
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b0], 0x1c
call fcn.0041a660
push eax
lea ecx, [esp + 0xd4]
call fcn.0041a7d0
push str.GraphicLib.xml
lea ecx, [esp + 0x24]
call fcn.0041a660
push eax
lea ecx, [esp + 0xd4]
call fcn.0041a9e0
mov ecx, 0x8802b0
call fcn.00557190
mov edi, eax
push edi
call fcn.005b449a
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x415988
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1ac], 0x15
call fcn.004012d0
lea ecx, [esp + 0x110]
mov byte [esp + 0x1ac], 0x12
call fcn.0041a520
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x1ac], 0x11
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x70]
mov byte [esp + 0x1b0], 0x10
push edx
jmp 0x415cde
push edi
push esi
mov ecx, 0x8802b0
call fcn.0055dd50
push ebp
push ebp
push 2
push ebp
push ebp
push 0xc0000000
push ebp
lea ecx, [esp + 0xec]
call fcn.00405900
mov ecx, eax
call fcn.00405830
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, ebp
je 0x4159da
lea eax, [esp + 0x10]
push ebp
push eax
push edi
push esi
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.005b44c3
add esp, 4
lea ecx, [esp + 0x20]
push 0x6381c8
call fcn.0041a660
push eax
lea ecx, [esp + 0xd4]
call fcn.0041a9e0
lea ecx, [esp + 0x148]
call fcn.0052f0e0
push ebp
push ebp
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1b4], 0x1d
call fcn.00405900
mov ecx, eax
call fcn.00405830
push eax
lea ecx, [esp + 0x150]
call fcn.0052f1a5
cmp eax, ebp
je 0x415a8f
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 0x1e
lea ecx, [esp + 0x148]
call fcn.0052f3cb
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x14c]
call fcn.0052f49a
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], bl
mov eax, dword [edx - 8]
push eax
call fcn.005b4ba6
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 0x1d
call fcn.005b4761
cmp esi, ebp
jne 0x415a40
push str.GraphicLibName.para
lea ecx, [esp + 0x24]
call fcn.0041a660
push eax
lea ecx, [esp + 0xd4]
call fcn.0041a9e0
lea ecx, [esp + 0xc0]
call fcn.005b57f3
push ebp
push 0x1001
push ebp
lea ecx, [esp + 0xdc]
mov byte [esp + 0x1b8], 0x1f
call fcn.00405900
mov ecx, eax
call fcn.00405830
push eax
lea ecx, [esp + 0xcc]
call fcn.005b59a5
test eax, eax
jne 0x415b7d
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1ac], 0x1d
call fcn.005b58e8
lea ecx, [esp + 0x148]
mov byte [esp + 0x1ac], 0x1c
call fcn.0052f11f
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1ac], 0x15
call fcn.004012d0
lea ecx, [esp + 0x110]
mov byte [esp + 0x1ac], 0x12
call fcn.0041a520
mov eax, dword [esp + 0x20]
mov byte [esp + 0x1ac], 0x11
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x1b0], 0x10
push ecx
call fcn.005b44c3
add esp, 8
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.004012d0
jmp 0x415fcc
mov eax, dword [0x880460]
lea edx, [esp + 0x78]
push 4
push edx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x80], eax
call fcn.005b5afc
mov eax, dword [0x880460]
xor esi, esi
cmp eax, ebp
jle 0x415c63
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [0x87a768]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xbc]
push esi
push ecx
mov ecx, 0x880458
mov byte [esp + 0x1b4], 0x20
call fcn.0041ab30
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b0], 0x21
call fcn.005b48a8
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1ac], 0x20
call fcn.005b4761
mov edx, dword [esp + 0x10]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x164]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
push ebp
push ebp
lea ecx, [esp + 0x16c]
push 0x40
push ecx
push eax
push eax
lea ecx, [esp + 0x28]
call fcn.005b4ba6
push eax
push ebp
push ebp
call ebx
lea edx, [esp + 0x164]
push 0x40
push edx
lea ecx, [esp + 0xc8]
call fcn.005b5afc
lea ecx, [esp + 0x10]
mov byte [esp + 0x1ac], 0x1f
call fcn.005b4761
mov eax, dword [0x880460]
inc esi
cmp esi, eax
jl 0x415bb1
lea ecx, [esp + 0xc0]
call fcn.005b5bc0
lea ecx, [esp + 0xc0]
mov byte [esp + 0x1ac], 0x1d
call fcn.005b58e8
lea ecx, [esp + 0x148]
mov byte [esp + 0x1ac], 0x1c
call fcn.0052f11f
lea ecx, [esp + 0xd0]
mov byte [esp + 0x1ac], 0x15
call fcn.004012d0
lea ecx, [esp + 0x110]
mov byte [esp + 0x1ac], 0x12
call fcn.0041a520
mov eax, dword [esp + 0x20]
mov byte [esp + 0x1ac], 0x11
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x70]
mov byte [esp + 0x1b0], 0x10
push ecx
call fcn.005b44c3
add esp, 8
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1ac], 0xffffffff
call fcn.004012d0
jmp 0x415fcc
lea ecx, [esp + 0x30]
call fcn.0041b1a0
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1ac], ebp
call fcn.0041b1a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x1ac], 1
call fcn.0041b1a0
lea ecx, [esp + 0x54]
mov byte [esp + 0x1ac], 2
call fcn.0041b1a0
lea ecx, [esp + 0x60]
mov byte [esp + 0x1ac], 3
call fcn.0041b1a0
push 0x87f5fc
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b0], 4
call fcn.00401750
mov ebx, 5
push 0x20
lea ecx, [esp + 0x18]
mov dword [esp + 0x1b0], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
call fcn.00401510
mov edx, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
push str.Graphic_lib
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b0], 6
mov word [edx], bp
call fcn.00401610
cmp dword [esp + 0x2c], edi
je 0x415dc4
push 0x5c
lea ecx, [esp + 0x58]
call fcn.00405b40
lea eax, [esp + 0x14]
lea ecx, [esp + 0x54]
push eax
call fcn.004018e0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
push str.GraphicLib.xml
mov word [ecx], bp
lea ecx, [esp + 0x18]
call fcn.00401610
cmp dword [esp + 0x1c], ebp
je 0x415e21
lea edx, [esp + 0x14]
lea ecx, [esp + 0x3c]
push edx
mov dword [esp + 0x30], edi
call fcn.00405c40
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], ebp
push 0x2e
lea ecx, [esp + 0x40]
mov word [eax], bp
call fcn.004015e0
cmp eax, ebp
jle 0x415e3b
lea ecx, [esp + 0x48]
inc eax
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00401350
jmp 0x415e3b
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], ebp
mov word [edx], bp
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], ebp
mov word [eax], bp
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x64]
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0x64]
call fcn.00405b40
lea edx, [esp + 0x54]
lea ecx, [esp + 0x60]
push edx
call fcn.004018e0
mov eax, dword [esp + 0x3c]
cmp word [eax], bp
je 0x415e84
push 0x5c
lea ecx, [esp + 0x64]
call fcn.00405b40
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x64]
call fcn.004018e0
mov edx, dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], ebp
push str.GraphicLibName.para
lea ecx, [esp + 0x18]
mov word [eax], bp
call fcn.00401610
cmp dword [esp + 0x1c], ebp
je 0x415eee
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
push ecx
lea ecx, [esp + 0x40]
call fcn.00405c40
mov edx, dword [esp + 0x48]
mov dword [esp + 0x50], ebp
push 0x2e
lea ecx, [esp + 0x40]
mov word [edx], bp
call fcn.004015e0
cmp eax, ebp
jle 0x415f08
lea ecx, [esp + 0x48]
inc eax
push ecx
push eax
lea ecx, [esp + 0x44]
call fcn.00401350
jmp 0x415f08
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x44], ebp
mov word [edx], bp
mov eax, dword [esp + 0x48]
mov dword [esp + 0x50], ebp
mov word [eax], bp
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x64]
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0x64]
call fcn.00405b40
lea edx, [esp + 0x54]
lea ecx, [esp + 0x60]
push edx
call fcn.004018e0
mov eax, dword [esp + 0x3c]
cmp word [eax], bp
je 0x415f51
push 0x5c
lea ecx, [esp + 0x64]
call fcn.00405b40
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x64]
call fcn.004018e0
mov edx, dword [esp + 0x60]
push edx
call esi
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1ac], bl
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x1b0], 0xa
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x5c]
mov byte [esp + 0x1b4], 9
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x54]
mov byte [esp + 0x1b8], 8
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x1bc], 7
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x44]
mov dword [esp + 0x1c0], 0xffffffff
push edx
call fcn.005b44c3
add esp, 0x18
mov ecx, dword [esp + 0x1a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a0
ret