Function at 0x438860
Capabilities:
Create directory
Extract resource via kernel32 functions
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5d3090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push ebp
push esi
add ecx, 0x58
push edi
mov dword [esp + 0xa0], ecx
call fcn.0054ae20
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x4394f7
lea ecx, [esp + 0x64]
call fcn.0041b1a0
lea ecx, [esp + 0x70]
mov dword [esp + 0x118], ebx
call fcn.0041b1a0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x118], 1
call fcn.0041b1a0
lea ecx, [esp + 0x88]
mov byte [esp + 0x118], 2
call fcn.0041b1a0
lea ecx, [esp + 0x94]
mov byte [esp + 0x118], 3
call fcn.0041b1a0
push 0x87f5fc
lea ecx, [esp + 0x64]
mov byte [esp + 0x11c], 4
call fcn.00401750
lea eax, [esp + 0x64]
lea ecx, [esp + 0x94]
push eax
mov dword [esp + 0x11c], 5
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0x98]
call fcn.00405b40
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x98]
call fcn.004018e0
mov edx, dword [esp + 0x70]
cmp word [edx], bx
je 0x438968
push 0x5c
lea ecx, [esp + 0x98]
call fcn.00405b40
lea eax, [esp + 0x70]
lea ecx, [esp + 0x94]
push eax
call fcn.004018e0
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x58], ebx
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
call fcn.00401510
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x54]
mov cx, word [edx]
cmp cx, bx
je 0x4389a9
add edx, 2
mov word [eax], cx
add eax, 2
mov cx, word [edx]
cmp cx, bx
jne 0x438998
mov word [eax], bx
mov ebp, dword [esp + 0x54]
sub eax, ebp
sar eax, 1
mov dword [esp + 0x5c], eax
push 0x20
lea ecx, [esp + 0x48]
mov byte [esp + 0x11c], 6
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], ebx
call fcn.00401510
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], ebx
push str.PARAM
lea ecx, [esp + 0x48]
mov byte [esp + 0x11c], 7
mov word [edx], bx
call fcn.00401610
mov eax, dword [esp + 0x60]
mov esi, 1
cmp eax, esi
je 0x438a24
push 0x5c
lea ecx, [esp + 0x8c]
call fcn.00405b40
lea eax, [esp + 0x44]
lea ecx, [esp + 0x88]
push eax
call fcn.004018e0
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x98]
call fcn.00405c40
push 0x3a
lea ecx, [esp + 0x98]
call fcn.00405b40
lea edx, [esp + 0x88]
lea ecx, [esp + 0x94]
push edx
call fcn.004018e0
mov eax, dword [esp + 0x70]
cmp word [eax], bx
je 0x438a7f
push 0x5c
lea ecx, [esp + 0x98]
call fcn.00405b40
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x98]
call fcn.004018e0
mov edx, dword [esp + 0x94]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x4c], ebx
push str.Default.xml
lea ecx, [esp + 0x48]
mov word [eax], bx
call fcn.00401610
cmp dword [esp + 0x4c], ebx
je 0x438aee
lea ecx, [esp + 0x44]
mov dword [esp + 0x60], esi
push ecx
lea ecx, [esp + 0x74]
call fcn.00405c40
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x84], ebx
push 0x2e
lea ecx, [esp + 0x74]
mov word [edx], bx
call fcn.004015e0
cmp eax, ebx
jle 0x438b0b
lea ecx, [esp + 0x7c]
inc eax
push ecx
push eax
lea ecx, [esp + 0x78]
call fcn.00401350
jmp 0x438b0b
mov edx, dword [esp + 0x70]
mov dword [esp + 0x60], ebx
mov dword [esp + 0x78], ebx
mov word [edx], bx
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x84], ebx
mov word [eax], bx
lea ecx, [esp + 0xa4]
call fcn.0041b6e0
lea ecx, [esp + 0xd0]
mov byte [esp + 0x118], 8
call fcn.00419f90
push str.UTF_8
lea ecx, [esp + 0xd4]
mov byte [esp + 0x11c], 9
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xd0], ebx
call fcn.0041a280
push ebx
mov byte [esp + 0x11c], 0xa
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 ebp, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebp
push esi
mov dword [esp + 0x48], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x40]
mov esi, eax
push ecx
mov dword [esp + 0x54], esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
cmp ebp, ebx
jne 0x438c82
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 0xc
call fcn.0041ba00
mov edx, dword [esp + 0xd0]
mov byte [esp + 0x118], 0xb
push edx
call fcn.005b44c3
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 7
call fcn.0041b790
mov eax, dword [esp + 0x44]
mov byte [esp + 0x118], 6
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x11c], 5
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x120], 0x10
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x94]
mov byte [esp + 0x124], 0xf
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x8c]
mov byte [esp + 0x128], 0xe
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x84]
mov byte [esp + 0x12c], 0xd
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x130], 0xffffffff
push eax
call fcn.005b44c3
add esp, 0x1c
jmp 0x4394f7
cmp esi, 4
jb 0x438d3a
lea ecx, [esp + 0xa4]
call fcn.0041ba00
push 0x64
lea ecx, [esp + 0xe0]
call fcn.0041c320
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 0x11
push ecx
lea ecx, [esp + 0xe0]
call fcn.0041c350
mov dx, word [ebp]
xor esi, esi
and edx, 0xfefe
cmp edx, 0xfefe
jne 0x438cdc
mov esi, 2
jmp 0x438cf3
cmp byte [ebp], 0xef
jne 0x438cf3
cmp byte [ebp + 1], 0xbb
jne 0x438cf3
cmp byte [ebp + 2], 0xbf
jne 0x438cf3
mov esi, 3
cmp esi, dword [esp + 0x50]
jae 0x438d22
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0xdc]
sub ecx, esi
push eax
lea edx, [esi + ebp]
push ecx
push edx
lea ecx, [esp + 0xb0]
call fcn.0041bbd0
add esi, eax
mov eax, dword [esp + 0x50]
cmp esi, eax
jb 0x438cf9
mov eax, dword [esp + 0xe4]
mov byte [esp + 0x118], 0xa
push eax
call fcn.005b44c3
add esp, 4
push 0x40
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], ebx
call fcn.0041b410
push 0x20
lea ecx, [esp + 0x38]
mov byte [esp + 0x11c], 0x12
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
call fcn.0041b410
push 0x40
lea ecx, [esp + 0x14]
mov byte [esp + 0x11c], 0x13
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
call fcn.0041b410
push 0x400
lea ecx, [esp + 0x2c]
mov byte [esp + 0x11c], 0x14
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call fcn.0041b410
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push str.smartcarve
mov byte [esp + 0x11c], 0x15
mov byte [ecx], bl
lea ecx, [esp + 0x20]
call fcn.0041b5c0
mov ecx, dword [esp + 0xc8]
cmp ecx, ebx
je 0x438e1b
call fcn.0049c460
mov esi, eax
cmp esi, ebx
je 0x438e1b
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.0041cee0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
jne 0x438e13
mov ecx, dword [esp + 0xc8]
push esi
call fcn.0056eda0
mov esi, eax
cmp esi, ebx
jne 0x438de7
jmp 0x438e1b
cmp esi, ebx
jne 0x438f3e
mov eax, dword [esp + 0x28]
mov byte [esp + 0x118], 0x14
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x11c], 0x13
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x120], 0x12
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x28]
mov byte [esp + 0x124], 0xa
push eax
call fcn.005b44c3
add esp, 0x10
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 0x17
call fcn.0041ba00
mov ecx, dword [esp + 0xd0]
mov byte [esp + 0x118], 0x16
push ecx
call fcn.005b44c3
add esp, 4
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 7
call fcn.0041b790
mov edx, dword [esp + 0x44]
mov byte [esp + 0x118], 6
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x58]
mov byte [esp + 0x11c], 5
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x120], 0x1b
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x94]
mov byte [esp + 0x124], 0x1a
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x128], 0x19
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x84]
mov byte [esp + 0x12c], 0x18
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x130], 0xffffffff
push edx
call fcn.005b44c3
add esp, 0x1c
jmp 0x4394f7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push str.Embed_sys
lea ecx, [esp + 0x20]
mov byte [eax], bl
call fcn.0041b5c0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x3c], ebx
push 0x880da0
mov byte [ecx], bl
lea ecx, [esp + 0x38]
call fcn.0041b5c0
cmp dword [esi + 0x24], ebx
jne 0x438fa3
push 0x14
call fcn.005b449a
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x118], 0x1c
je 0x438f96
mov ecx, eax
call fcn.004e85f0
jmp 0x438f98
xor eax, eax
mov byte [esp + 0x118], 0x15
mov dword [esi + 0x24], eax
lea edx, [esp + 0x34]
push ebx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0xf4]
call fcn.0041df70
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0xe8]
inc eax
push ecx
mov ecx, dword [esi + 0x24]
mov byte [esp + 0x11c], 0x1d
mov dword [esp + 0x108], eax
call fcn.0041e2e0
lea ecx, [esp + 0xe8]
mov ebp, eax
mov byte [esp + 0x118], 0x15
call fcn.0041b790
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push str.value
lea ecx, [esp + 0x20]
mov byte [edx], bl
call fcn.0041b5c0
mov eax, dword [0x87f5a8]
lea ecx, [esp + 0x34]
push eax
push 0x66154c
push ecx
call fcn.00427c90
mov eax, dword [ebp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x43905c
push 0x18
call fcn.005b449a
add esp, 4
mov dword [esp + 0x40], eax
cmp eax, ebx
mov byte [esp + 0x118], 0x1e
je 0x43904f
push 0xb
mov ecx, eax
call fcn.0041e570
jmp 0x439051
xor eax, eax
mov byte [esp + 0x118], 0x15
mov dword [ebp + 0x20], eax
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x34]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0041ed60
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push str.LayerParam
mov byte [ecx], bl
lea ecx, [esp + 0x20]
call fcn.0041b5c0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], ebx
push 0x880da0
lea ecx, [esp + 0x38]
mov byte [edx], bl
call fcn.0041b5c0
lea eax, [esp + 0x34]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0041cf20
mov ebp, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
push str.Layer
lea ecx, [esp + 0x20]
mov byte [edx], bl
call fcn.0041b5c0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], ebx
push 0x880da0
lea ecx, [esp + 0x38]
mov byte [eax], bl
call fcn.0041b5c0
lea ecx, [esp + 0x34]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, ebp
call fcn.0041cf20
mov esi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ebx
push str.Prior
lea ecx, [esp + 0x14]
mov byte [eax], bl
call fcn.0041b5c0
mov ecx, dword [edi]
call fcn.0054a850
push eax
lea ecx, [esp + 0x2c]
push 0x66154c
push ecx
call fcn.00427c90
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
mov ecx, esi
push edx
push eax
call fcn.0041d160
push str.Process_Media
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a900
push eax
lea ecx, [esp + 0x2c]
push 0x66154c
push ecx
call fcn.00427c90
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
mov ecx, esi
push edx
push eax
call fcn.0041d160
push str.LayerWay
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a960
and eax, 0xff
lea ecx, [esp + 0x28]
push eax
push 0x66154c
push ecx
call fcn.00427c90
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x10]
mov ecx, esi
push edx
push eax
call fcn.0041d160
push str.Process
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a920
test eax, eax
mov eax, str.true
jne 0x4391d3
mov eax, str.false
push eax
lea ecx, [esp + 0x2c]
call fcn.0041a280
lea ecx, [esp + 0x28]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0041d160
push str.Visible
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a940
test eax, eax
mov eax, str.true
jne 0x439211
mov eax, str.false
push eax
lea ecx, [esp + 0x2c]
call fcn.0041a280
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d160
push str.Color
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a830
push eax
lea edx, [esp + 0x2c]
push str.0x_08X
push edx
call fcn.00427c90
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d160
push str.Speed
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.00426a20
push eax
lea edx, [esp + 0x2c]
push 0x66154c
push edx
call fcn.00427c90
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d160
push 0x6614d8
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a8a0
push eax
lea edx, [esp + 0x2c]
push 0x66154c
push edx
call fcn.00427c90
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d160
push str.Max_Power
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a8c0
push eax
lea edx, [esp + 0x2c]
push 0x66154c
push edx
call fcn.00427c90
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d160
push str.Small_Power
lea ecx, [esp + 0x14]
call fcn.0041a280
mov ecx, dword [edi]
call fcn.0054a8e0
push eax
lea edx, [esp + 0x2c]
push 0x66154c
push edx
call fcn.00427c90
add esp, 0xc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.0041d160
mov ecx, dword [esp + 0xa0]
push edi
call fcn.0054ae30
mov edi, eax
cmp edi, ebx
jne 0x4390b2
push ebx
push ebx
lea ecx, [esp + 0xac]
call fcn.0043dac0
mov ebp, eax
push ebp
call fcn.005b449a
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x439406
mov edx, dword [esp + 0x28]
mov byte [esp + 0x118], 0x14
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x14]
mov byte [esp + 0x11c], 0x13
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x3c]
mov byte [esp + 0x120], 0x12
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x28]
mov byte [esp + 0x124], 0xa
push edx
call fcn.005b44c3
add esp, 0x10
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 7
call fcn.0041a520
mov eax, dword [esp + 0x44]
mov byte [esp + 0x118], 6
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x11c], 5
push ecx
jmp 0x4394db
push ebp
push esi
lea ecx, [esp + 0xac]
call fcn.0043dac0
push ebx
push ebx
push 2
push ebx
push ebx
push 0xc0000000
push ebx
lea ecx, [esp + 0x7c]
call fcn.00405900
mov ecx, eax
call fcn.00405830
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
je 0x439457
lea edx, [esp + 0x40]
push ebx
push edx
push ebp
push esi
push edi
mov dword [esp + 0x54], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.005b44c3
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x11c], 0x14
push eax
call fcn.005b44c3
mov ecx, dword [esp + 0x18]
mov byte [esp + 0x120], 0x13
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x40]
mov byte [esp + 0x124], 0x12
push edx
call fcn.005b44c3
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x128], 0xa
push eax
call fcn.005b44c3
add esp, 0x14
lea ecx, [esp + 0xa4]
mov byte [esp + 0x118], 7
call fcn.0041a520
mov ecx, dword [esp + 0x44]
mov byte [esp + 0x118], 6
push ecx
call fcn.005b44c3
mov edx, dword [esp + 0x58]
mov byte [esp + 0x11c], 5
push edx
call fcn.005b44c3
add esp, 8
lea ecx, [esp + 0x60]
mov dword [esp + 0x118], 0xffffffff
call fcn.004012d0
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10c
ret