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

Disassembly:
push 0xffffffffffffffff
push 0x44f4f0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47aed0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47aed0]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x18], edi
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x60]
mov ebp, 0xf
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.004024b0
push 1
push 0x452918
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call fcn.004026f0
cmp edi, str.CACHE
jne 0x402dcd
push 6
push str.Cache_
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x402d3e
lea eax, [esp + 0x20]
push eax
call fcn.00401340
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402d50
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x402d72
lea eax, [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f9c
cmp dword [esp + 0x34], edi
jb 0x402da7
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0043f32c
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x70], edi
jb 0x402dc6
mov edx, dword [esp + 0x5c]
push edx
call fcn.0043f32c
add esp, 4
xor eax, eax
jmp 0x40302f
cmp edi, str.DATA
jne 0x402e93
push 5
push str.Data_
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x402dfc
lea eax, [esp + 0x20]
push eax
call fcn.00401340
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402e10
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x402e32
lea eax, [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f9c
mov esi, edi
cmp dword [esp + 0x34], esi
jb 0x402e69
mov eax, dword [esp + 0x20]
push eax
call fcn.0043f32c
add esp, 4
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x70], esi
jb 0x402dc6
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0043f32c
add esp, 4
xor eax, eax
jmp 0x40302f
cmp edi, 0x4528f4
je 0x402f12
cmp edi, str.Bitmap
je 0x402f12
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x402eb6
lea eax, [esp + 0x20]
push eax
call fcn.00401340
add esp, 4
push esi
lea ecx, [esp + 0x20]
call fcn.00402b20
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x402ed7
lea eax, [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f9c
lea ecx, [esp + 0x1c]
call fcn.004022d0
lea ecx, [esp + 0x58]
call fcn.004022d0
xor eax, eax
jmp 0x40302f
push 0xd
push str.Skindefault_
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x20]
mov edi, 0x10
cmp dword [esp + 0x34], edi
jae 0x402f35
lea eax, [esp + 0x20]
push eax
call fcn.00401340
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402f43
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.004026f0
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], edi
jae 0x402f65
lea eax, [esp + 0x20]
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f9c
lea ecx, [esp + 0x1c]
call fcn.004022d0
lea ecx, [esp + 0x58]
call fcn.004022d0
xor eax, eax
jmp 0x40302f
mov eax, dword [esp + 0x18]
cmp eax, str.Icon
jne 0x402fb1
movzx edx, word [esp + 0x50]
push 3
push edx
jmp 0x402fb8
push eax
movzx eax, word [esp + 0x54]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
lea ecx, [esp + 0x18]
push ecx
push eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x403007
mov edx, dword [esp + 0x20]
push edx
call fcn.0043f32c
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x70], esi
jb 0x40302a
mov eax, dword [esp + 0x5c]
push eax
call fcn.0043f32c
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0043ee6a
add esp, 0x34
ret