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

Disassembly:
push 0x6a8
mov eax, 0x413957
call fcn.0040f560
mov esi, ecx
mov eax, dword [esi + 0x30]
xor edi, edi
push edi
mov dword [ebp - 0x688], esi
mov dword [ebp - 0x67c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
fld qword [0x4168b8]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
fstp qword [ebp - 0x66c]
mov dword [ebp - 0x690], eax
mov dword [ebp - 0x68c], edi
mov dword [ebp - str.DreamAuth.exe], 0x4162b0
jmp 0x401802
mov esi, dword [ebp - 0x688]
xor edi, edi
mov eax, dword [ebp - 0x680]
push dword [eax]
lea eax, [ebp - 0x420]
push 0x41b108
push 0x41633c
push 0x104
push eax
call fcn.00405c36
mov eax, dword [ebp - 0x680]
mov eax, dword [eax]
mov dword [ebp - 0x684], eax
lea eax, [esi + 0x5c]
add esp, 0x14
cmp dword [eax + 4], edi
je 0x401889
push eax
lea eax, [ebp - 0x6b4]
push eax
call fcn.00401b63
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x6b4]
mov esi, dword [eax]
cmp esi, eax
je 0x40186e
push dword [ebp - 0x684]
call dword [esi + 8]
mov esi, dword [esi]
pop ecx
cmp esi, dword [ebp - 0x6b4]
jne 0x40185a
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x6b4]
call fcn.00401bd1
push dword [ebp - 0x6b4]
call fcn.00405b5a
pop ecx
mov eax, dword [ebp - 0x68c]
inc eax
movzx eax, ax
push 0xa
push eax
push dword [ebp - 0x690]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
mov dword [ebp - 0x694], esi
cmp esi, edi
jne 0x4018cb
mov eax, dword [0x41b0f8]
mov eax, dword [eax*4 + 0x41a020]
push 0x10
push edi
push eax
push dword [ebp - 0x67c]
call ebx
call fcn.00405d59
push esi
push dword [ebp - 0x690]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x698], eax
cmp eax, edi
jne 0x4018ff
mov eax, dword [0x41b0f8]
mov eax, dword [eax*4 + 0x41a020]
push 0x10
push edi
push eax
push dword [ebp - 0x67c]
call ebx
call fcn.00405d59
push esi
push dword [ebp - 0x690]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40192f
mov eax, dword [0x41b0f8]
mov eax, dword [eax*4 + 0x41a020]
push 0x10
push edi
push eax
push dword [ebp - 0x67c]
call ebx
call fcn.00405d59
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x69c], eax
cmp eax, edi
jne 0x40195d
mov eax, dword [0x41b0f8]
mov eax, dword [eax*4 + 0x41a020]
push 0x10
push edi
push eax
push dword [ebp - 0x67c]
call ebx
call fcn.00405d59
mov dword [ebp - 0x684], edi
mov eax, dword [ebp - 0x680]
mov esi, dword [eax]
push 0x41b108
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040615b
mov edi, 0x416348
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004060e6
push edi
push esi
call fcn.00405ddf
add esp, 0x20
jmp 0x4019db
mov eax, edi
sub eax, esi
sar eax, 1
inc eax
push eax
push esi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00406010
lea eax, [ebp - 0x218]
push eax
lea esi, [edi + 2]
call fcn.00405dad
push 0x416348
push esi
call fcn.00405ddf
add esp, 0x1c
mov edi, eax
test edi, edi
jne 0x4019a4
and dword [ebp - 0x678], eax
push 0x41634c
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.00405d12
add esp, 0xc
test eax, eax
jne 0x401a27
push dword [ebp - 0x678]
push 1
push dword [ebp - 0x698]
push dword [ebp - 0x69c]
call fcn.00405f96
add esp, 0x10
cmp eax, 1
je 0x401aa1
xor esi, esi
cmp dword [ebp - 0x678], esi
je 0x401a43
push dword [ebp - 0x678]
call fcn.0040622b
pop ecx
mov dword [ebp - 0x678], esi
mov eax, dword [0x41b0f8]
mov eax, dword [eax*4 + 0x41a028]
lea ecx, [ebp - 0x420]
push ecx
push eax
lea eax, [ebp - 0x664]
push 0x122
push eax
call fcn.00405c36
add esp, 0x10
push 0x15
push esi
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x67c]
call ebx
push 2
pop ecx
cmp eax, ecx
jne 0x401a93
mov eax, dword [ebp - 0x688]
mov dword [ebp - 0x684], ecx
mov dword [eax + 0x2c], esi
cmp dword [ebp - 0x684], esi
jle 0x401963
jmp 0x401aaf
push dword [ebp - 0x678]
call fcn.0040622b
pop ecx
xor esi, esi
push dword [ebp - 0x694]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [ebp - 0x68c]
inc edi
mov dword [ebp - 0x694], edi
fild dword [ebp - 0x694]
jns 0x401ad6
fadd qword [0x4168b0]
mov eax, dword [ebp - 0x688]
fstp qword [ebp - 0x674]
add eax, 0x38
cmp dword [eax + 4], esi
je 0x401b3a
push eax
lea eax, [ebp - 0x6a8]
push eax
call fcn.00401b63
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x6a8]
mov esi, dword [eax]
cmp esi, eax
je 0x401b1f
lea eax, [ebp - 0x674]
push eax
call dword [esi + 8]
mov esi, dword [esi]
pop ecx
cmp esi, dword [ebp - 0x6a8]
jne 0x401b0a
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x6a8]
call fcn.00401bd1
push dword [ebp - 0x6a8]
call fcn.00405b5a
pop ecx
add dword [ebp - 0x680], 8
mov dword [ebp - 0x68c], edi
cmp edi, 0xb
jb 0x4017fa
mov eax, dword [ebp - 0x688]
mov dword [eax + 0x2c], 1
call fcn.0040f5aa
ret