Function at 0x40f400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450c5e
mov eax, dword fs:[0]
push eax
mov eax, 0xf42d4
call fcn.0042bcf0
mov eax, dword [0x46c098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xf42a4], ecx
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0xf42a8], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x463a44
mov ebx, eax
push 0x68
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
sub esp, 8
mov edx, eax
mov ecx, edi
call fcn.0040e910
mov ebx, dword [ebp - 0xf42a4]
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x40f576
call fcn.004214d0
lea eax, [ebp - 0xf42c8]
push eax
call fcn.00422de0
add esp, 4
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x40f4b8
mov edx, dword [edx]
mov dword [ebp - 0xf4258], 0xf
mov dword [ebp - 0xf425c], 0
mov byte [ebp - 0xf426c], 0
cmp byte [edx], 0
jne 0x40f4dc
xor ecx, ecx
jmp 0x40f4ea
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40f4e1
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xf426c]
call fcn.00402dd0
lea eax, [ebp - 0xf426c]
mov byte [ebp - 4], 1
push str.CZipImplement::Unzip_OpenZip_failed
push eax
call fcn.00421490
add esp, 4
push eax
call fcn.004212a0
mov eax, dword [ebp - 0xf4258]
add esp, 8
cmp eax, 0x10
jb 0x40f536
inc eax
lea ecx, [ebp - 0xf426c]
push eax
push dword [ebp - 0xf426c]
call fcn.00403540
mov eax, dword [ebp - 0xf42b4]
mov dword [ebp - 0xf4258], 0xf
mov dword [ebp - 0xf425c], 0
mov byte [ebp - 0xf426c], 0
cmp eax, 0x10
jb 0x40f56f
inc eax
lea ecx, [ebp - 0xf42c8]
push eax
push dword [ebp - 0xf42c8]
call fcn.00403540
xor eax, eax
jmp 0x40fb37
lea edi, [ebx + 8]
xor ecx, ecx
mov dword [edi], 0
mov word [edi + 4], cx
mov dword [edi + 0x22c], ecx
cmp dword [eax], 1
je 0x40f5a1
mov dword [0x46e7ac], 0x80000
mov eax, 0x80000
jmp 0x40f5b1
mov ecx, dword [eax + 4]
push edi
push 0xffffffffffffffff
call fcn.0040e150
mov dword [0x46e7ac], eax
mov dword [ebx + 4], eax
test eax, eax
je 0x40f692
call fcn.004214d0
lea eax, [ebp - 0xf42c8]
push eax
call fcn.00422de0
add esp, 4
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x40f5df
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xf426c]
call fcn.00402ed0
lea eax, [ebp - 0xf426c]
mov byte [ebp - 4], 3
push str.CZipImplement::Zip_UnPackFiles_GetZipItem_failed
push eax
call fcn.00421490
add esp, 4
push eax
call fcn.004212a0
mov eax, dword [ebp - 0xf4258]
add esp, 8
cmp eax, 0x10
jb 0x40f62a
inc eax
lea ecx, [ebp - 0xf426c]
push eax
push dword [ebp - 0xf426c]
call fcn.00403540
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xf42b4]
mov dword [ebp - 0xf4258], 0xf
mov dword [ebp - 0xf425c], 0
mov byte [ebp - 0xf426c], 0
cmp eax, 0x10
jb 0x40f66a
inc eax
lea ecx, [ebp - 0xf42c8]
push eax
push dword [ebp - 0xf42c8]
call fcn.00403540
mov ecx, dword [ebx]
test ecx, ecx
je 0x40f686
cmp dword [ecx], 1
sete al
test al, al
je 0x40f686
call fcn.0040ea30
xor eax, eax
jmp 0x40fb37
call fcn.0040f3a0
xor eax, eax
jmp 0x40fb37
push 0xf4240
lea eax, [ebp - 0xf4250]
push 0
push eax
call fcn.0042ddc0
add esp, 0xc
mov dword [ebp - 0xf4274], 0xf
mov dword [ebp - 0xf4278], 0
mov byte [ebp - 0xf4288], 0
mov dword [ebp - 4], 4
xor esi, esi
mov eax, dword [edi]
mov dword [ebp - 0xf42b0], eax
mov dword [ebp - 0xf42ac], esi
test eax, eax
jle 0x40faf8
push 0xf4240
lea eax, [ebp - 0xf4250]
push 0
push eax
call fcn.0042ddc0
mov ecx, dword [ebx]
xor eax, eax
add esp, 0xc
mov dword [edi], 0
mov word [edi + 4], ax
mov dword [edi + 0x22c], eax
test ecx, ecx
jne 0x40f721
mov dword [0x46e7ac], 0x10000
mov eax, 0x10000
jmp 0x40f746
cmp dword [ecx], 1
je 0x40f737
mov dword [0x46e7ac], 0x80000
mov eax, 0x80000
jmp 0x40f746
mov ecx, dword [ecx + 4]
push edi
push esi
call fcn.0040e150
mov dword [0x46e7ac], eax
mov ecx, dword [ebx]
mov dword [ebx + 4], eax
mov dword [ebp - 0xf42a4], 0
test ecx, ecx
jne 0x40f76f
mov dword [0x46e7ac], 0x10000
mov dword [ebx + 4], 0x10000
jmp 0x40fae5
cmp dword [ecx], 1
je 0x40f78a
mov dword [0x46e7ac], 0x80000
mov dword [ebx + 4], 0x80000
jmp 0x40fae5
mov ecx, dword [ecx + 4]
lea eax, [ebp - 0xf42a4]
push eax
sub esp, 8
lea eax, [ebp - 0xf4250]
push eax
push esi
call fcn.0040e790
mov dword [0x46e7ac], eax
mov dword [ebx + 4], eax
test eax, eax
jne 0x40fae5
mov ecx, dword [ebp - 0xf42a4]
cmp ecx, 3
jle 0x40fae5
lea edx, [ebp - 0xf4250]
mov word [ebp - 0xf4254], 0xfeff
movzx eax, byte [edx]
lea esi, [ebp - 0xf4254]
mov word [ebp - 0xf4270], 0xbbef
mov byte [ebp - 0xf426e], 0xbf
cmp al, byte [esi]
jne 0x40f7fc
movzx eax, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40f7fc
xor eax, eax
jmp 0x40f801
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40f8d0
mov dword [ebp - 0xf4258], 7
mov dword [ebp - 0xf425c], eax
mov word [ebp - 0xf426c], ax
cmp word [ebp - 0xf424e], ax
jne 0x40f82d
xor ecx, ecx
jmp 0x40f845
lea ecx, [ebp - 0xf424e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f836
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0xf424e]
push eax
lea ecx, [ebp - 0xf426c]
call fcn.00403380
mov byte [ebp - 4], 5
lea edx, [ebp - 0xf426c]
cmp dword [ebp - 0xf4258], 8
lea ecx, [ebp - 0xf42c8]
cmovae edx, dword [ebp - 0xf426c]
call fcn.00401470
push eax
lea ecx, [ebp - 0xf4288]
call fcn.00401fe0
mov eax, dword [ebp - 0xf42b4]
cmp eax, 0x10
jb 0x40f8a5
inc eax
lea ecx, [ebp - 0xf42c8]
push eax
push dword [ebp - 0xf42c8]
call fcn.00403540
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xf4258]
cmp eax, 8
jb 0x40f998
inc eax
lea ecx, [ebp - 0xf426c]
push eax
push dword [ebp - 0xf426c]
call fcn.00403490
jmp 0x40f998
lea edx, [ebp - 0xf4250]
movzx eax, byte [edx]
lea esi, [ebp - 0xf4270]
cmp al, byte [esi]
jne 0x40f8f9
movzx eax, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x40f8f9
movzx eax, byte [edx + 2]
cmp al, byte [esi + 2]
jne 0x40f8f9
xor eax, eax
jmp 0x40f8fe
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40f94d
lea eax, [ecx - 3]
mov dword [ebp - 0xf4258], 0xf
push eax
lea eax, [ebp - 0xf424d]
mov dword [ebp - 0xf425c], 0
push eax
lea ecx, [ebp - 0xf426c]
mov byte [ebp - 0xf426c], 0
call fcn.00402dd0
lea eax, [ebp - 0xf426c]
push eax
lea ecx, [ebp - 0xf4288]
call fcn.00401fe0
lea ecx, [ebp - 0xf426c]
jmp 0x40f993
push ecx
lea eax, [ebp - 0xf4250]
mov dword [ebp - 0xf42cc], 0xf
push eax
lea ecx, [ebp - 0xf42e0]
mov dword [ebp - 0xf42d0], 0
mov byte [ebp - 0xf42e0], 0
call fcn.00402dd0
lea eax, [ebp - 0xf42e0]
push eax
lea ecx, [ebp - 0xf4288]
call fcn.00401fe0
lea ecx, [ebp - 0xf42e0]
call fcn.004035f0
lea edx, [ebx + 0xc]
lea ecx, [ebp - 0xf42a0]
call fcn.00401470
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf42a0]
cmp dword [ebp - 0xf428c], 0x10
mov eax, 0xe
mov esi, dword [ebp - 0xf4290]
cmovae ecx, dword [ebp - 0xf42a0]
cmp esi, eax
cmovb eax, esi
push eax
push 0x463ab4
push ecx
call fcn.004024a0
add esp, 0xc
test eax, eax
jne 0x40fa38
cmp esi, 0xe
jb 0x40fa38
ja 0x40fa38
sub esp, 0x18
lea ecx, [ebp - 0xf4288]
mov esi, esp
mov dword [ebp - 0xf42a4], esp
mov byte [esi + 8], 4
or dword [esi + 8], 0x100
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
cmp dword [ebp - 0xf4274], 0x10
mov edx, dword [ebp - 0xf4278]
cmovae ecx, dword [ebp - 0xf4288]
call fcn.00417c70
mov dword [esi], eax
push 0x463acb
mov byte [ebp - 4], 7
push str.content
jmp 0x40faa7
push 0x463acc
lea ecx, [ebp - 0xf42a0]
call fcn.0040fb60
sub esp, 0x18
test eax, eax
lea eax, [ebp - 0xf4288]
mov dword [ebp - 0xf42a4], esp
mov ecx, esp
push eax
jne 0x40fa73
call fcn.00418640
push 0x463aea
mov byte [ebp - 4], 8
push str.background
jmp 0x40faa7
call fcn.00418640
mov byte [ebp - 4], 9
lea esi, [ebp - 0xf42a0]
cmp dword [ebp - 0xf428c], 0x10
lea edx, [ebp - 0xf42a0]
mov eax, dword [ebp - 0xf4290]
cmovae esi, dword [ebp - 0xf42a0]
cmovae edx, dword [ebp - 0xf42a0]
add eax, esi
push eax
push edx
mov ecx, dword [ebp - 0xf42a8]
call fcn.00419d70
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00418970
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xf428c]
cmp eax, 0x10
jb 0x40fadf
inc eax
lea ecx, [ebp - 0xf42a0]
push eax
push dword [ebp - 0xf42a0]
call fcn.00403540
mov esi, dword [ebp - 0xf42ac]
inc esi
mov dword [ebp - 0xf42ac], esi
cmp esi, dword [ebp - 0xf42b0]
jl 0x40f6e2
mov ecx, dword [ebx]
test ecx, ecx
je 0x40fb0f
cmp dword [ecx], 1
sete al
test al, al
je 0x40fb0f
call fcn.0040ea30
jmp 0x40fb14
call fcn.0040f3a0
mov eax, dword [ebp - 0xf4274]
cmp eax, 0x10
jb 0x40fb32
inc eax
lea ecx, [ebp - 0xf4288]
push eax
push dword [ebp - 0xf4288]
call fcn.00403540
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042aad6
mov esp, ebp
pop ebp
ret 0xc