Function at 0x427e70
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508fce
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x556754]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 8]
mov esi, eax
push 0x518064
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x428339
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x428339
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x428339
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x428339
mov esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x58]
push 0
push esi
call fcn.0042a270
push esi
push edi
lea ecx, [ebp - 0x58]
call fcn.0040c050
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov edx, dword [edi]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x427f60
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040c140
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x517fcc
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004e0007
mov ecx, eax
add esp, 8
mov dword [ebp - 0x5c], ecx
test ecx, ecx
jne 0x427fa6
call fcn.004d8a67
mov esi, dword [eax]
neg esi
jmp 0x427fd2
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
push ecx
push dword [ebp - 0x48]
cmovae eax, dword [ebp - 0x58]
push 1
push eax
call fcn.004e034c
push dword [ebp - 0x5c]
mov esi, eax
call fcn.004e0094
xor eax, eax
add esp, 0x14
cmp esi, dword [ebp - 0x48]
cmovne esi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x42800c
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428002
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428487
push edx
push ecx
call fcn.004b592c
add esp, 8
test esi, esi
jg 0x4281ae
call fcn.00437e80
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x428438
neg esi
mov dword [ebp - 0x28], 0
push 0x50
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxutilsutils.cc]
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], 0x4f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x517fe8]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x517ff8]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x518008]
movups xmmword [eax + 0x30], xmm0
mov byte [eax + 0x40], 0
mov dword [ebp - 0x28], eax
mov ax, word [0x515c5c]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x40], ax
mov al, byte [0x515c5e]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 3
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0
mov byte [ebp - 4], 5
call fcn.00437e80
mov edi, eax
lea ecx, [ebp - 0xfc]
push 0x61
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d2d0
mov esi, eax
push str.TrayUnZipFile2_failed__save_path_failed._path:
push esi
mov byte [ebp - 4], 6
call fcn.00408ea0
mov ecx, dword [ebp - 0x64]
mov edx, 0x515a88
mov ecx, dword [ecx]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.00406fa0
push str._error
push esi
call fcn.00408ea0
add esp, 0x18
mov ecx, esi
push dword [ebp - 0x5c]
call fcn.004237b0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.00408fe0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x428165
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42815b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42848c
push edx
push ecx
call fcn.004b592c
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x428438
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42842e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42848c
jmp 0x42842e
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428438
mov eax, dword [ebp - 0x60]
push dword [eax]
push dword [edi]
call fcn.004b6f00
add esp, 8
test eax, eax
jns 0x42832f
call fcn.00437e80
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x428438
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x28]
neg esi
mov dword [ebp - 0x28], 0
push 0x50
mov dword [ebp - 0x5c], esi
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxutilsutils.cc]
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], 0x4f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x517fe8]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x517ff8]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x518008]
movups xmmword [eax + 0x30], xmm0
mov byte [eax + 0x40], 0
mov dword [ebp - 0x28], eax
mov ax, word [0x515c5c]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x40], ax
mov al, byte [0x515c5e]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 3
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0
mov byte [ebp - 4], 8
call fcn.00437e80
mov edi, eax
lea ecx, [ebp - 0xfc]
push 0x6a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d2d0
mov esi, eax
push str.TrayUnzipFile2__un_zip_failed_path:
push esi
mov byte [ebp - 4], 9
call fcn.00408ea0
mov eax, dword [ebp - 0x60]
mov ecx, 0x515a88
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.00406fa0
push str.error
push esi
call fcn.00408ea0
add esp, 0x18
mov ecx, esi
push dword [ebp - 0x5c]
call fcn.004237b0
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0xfc]
call fcn.00408fe0
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x428165
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42815b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42848c
jmp 0x42815b
mov esi, 1
jmp 0x42843a
call fcn.00437e80
mov ecx, eax
push 2
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
test al, al
je 0x428438
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push 0x50
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0040bc80
movups xmm0, xmmword [str.D:workWeiDuanGameMicroGameBox_srcmicrogameboxutilsutils.cc]
mov dword [ebp - 0x18], 0x40
mov dword [ebp - 0x14], 0x4f
movups xmmword [eax], xmm0
movups xmm0, xmmword [0x517fe8]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [0x517ff8]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [0x518008]
movups xmmword [eax + 0x30], xmm0
mov byte [eax + 0x40], 0
mov dword [ebp - 0x28], eax
mov ax, word [0x515c5c]
mov dword [ebp - 0x40], 0
mov word [ebp - 0x40], ax
mov al, byte [0x515c5e]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 3
mov byte [ebp - 0x3e], al
mov byte [ebp - 0x3d], 0
mov byte [ebp - 4], 2
call fcn.00437e80
mov edi, eax
lea ecx, [ebp - 0xfc]
push 0x5a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040d2d0
mov esi, eax
push str.TrayUnZipFile2_failed__read_resource_failed._file:
push esi
mov byte [ebp - 4], 3
call fcn.00408ea0
mov ecx, dword [ebp - 0x64]
mov edx, 0x515a88
mov ecx, dword [ecx]
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.00406fa0
add esp, 0x10
jmp 0x4282e5
push edx
push ecx
call fcn.004b592c
add esp, 8
xor esi, esi
mov edx, dword [ebp - 0x44]
cmp edx, 0x10
jb 0x42846a
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x428460
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42848c
push edx
push ecx
call fcn.004b592c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5d96
mov esp, ebp
pop ebp
ret
call fcn.004d899e
call fcn.004d899e
int3