Function at 0x403fd0
Capabilities:
Create thread
Extract resource via kernel32 functions
Get common file path
Resume thread
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c30d
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5d0000]
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 ebx, ecx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x254], 0
call fcn.004207c9
test ebx, ebx
jne 0x40401d
xor eax, eax
jmp 0x404020
mov eax, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x5da7cc], eax
mov eax, dword [ebx + 0x1c8]
test eax, eax
je 0x404054
push eax
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push dword [ebx + 0x1c8]
push 0
push 0x80
push dword [ebx + 0x20]
call esi
lea ecx, [ebp - 0x250]
call fcn.0040e5e0
push str.SETUP.bin
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
call fcn.004092d0
add esp, 0xc
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [eax]
mov esi, dword [0x5da8c8]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4040e3
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4040d5
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4040d5
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4040cb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
add eax, 0x10
mov dword [0x5da8c8], eax
jmp 0x4040e3
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5da8c8
call fcn.0040a5a0
mov edx, dword [ebp - 0x23c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404100
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x250]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404124
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x5da8c8]
call fcn.0040db70
push 0
cmp eax, 0xffffffff
je 0x40580f
push 2
push 0
push 0
push ecx
mov esi, esp
mov dword [ebp - 0x258], esi
mov eax, dword [0x5da8c8]
add eax, 0xfffffff0
push eax
call fcn.0040a460
add esp, 4
add eax, 0x10
mov ecx, 0x5da8f8
mov dword [esi], eax
call fcn.0040eeb0
mov eax, dword [0x5da918]
mov eax, dword [eax + 0x84]
sub eax, 0x10
push eax
call fcn.0040a460
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x260], esi
mov dword [ebp - 4], 2
cmp dword [esi - 0xc], 0
jl 0x40427b
push 0x5afbe8
push esi
call fcn.0054f460
add esp, 8
test eax, eax
je 0x40427b
sub eax, esi
sar eax, 1
js 0x40427b
cmp dword [esi - 0xc], 0
jge 0x4041c5
or eax, 0xffffffff
jmp 0x4041e0
push 0x5afbe8
push esi
call fcn.0054f460
add esp, 8
test eax, eax
jne 0x4041dc
or eax, 0xffffffff
jmp 0x4041e0
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x260]
call fcn.00409740
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov edi, dword [0x5da8d0]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x404258
cmp dword [edi + 0xc], 0
jl 0x40424a
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40424a
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404240
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
add eax, 0x10
mov dword [0x5da8d0], eax
jmp 0x404258
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5da8d0
call fcn.0040a5a0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4042da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4042da
mov edi, dword [0x5da8d0]
lea ecx, [esi - 0x10]
add edi, 0xfffffff0
cmp ecx, edi
je 0x4042da
cmp dword [edi + 0xc], 0
jl 0x4042cc
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4042cc
push ecx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x244], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4042c2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
add eax, 0x10
mov dword [0x5da8d0], eax
jmp 0x4042da
push dword [esi - 0xc]
mov ecx, 0x5da8d0
push esi
call fcn.0040a5a0
mov eax, dword [0x5da918]
push 1
mov eax, dword [eax + 8]
add eax, 0x10
push eax
call fcn.0055648e
add esp, 8
mov edi, eax
mov ecx, 0x5da8f8
mov dword [ebp - 0x240], edi
push edi
push 0
push 0
call fcn.0040f550
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x244], ecx
mov dword [0x5da7e0], eax
mov dword [0x5da7e4], ecx
mov byte [ebp - 4], 6
call fcn.0042d02f
mov ecx, eax
mov byte [ebp - 4], 5
test ecx, ecx
je 0x405814
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x23c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x254], 1
mov dword [ebp - 0x24c], edi
call fcn.0056bc60
movsd xmm1, qword [0x5b2e80]
movsd xmm2, qword [0x5b2e90]
mulsd xmm0, xmm1
comisd xmm0, xmm2
jb 0x4043b4
mulsd xmm0, xmm1
comisd xmm0, xmm2
jb 0x4043a5
mulsd xmm0, xmm1
comisd xmm0, xmm2
jae 0x4043d6
sub esp, 8
movsd qword [esp], xmm0
push str._.2f_GB
jmp 0x4043c1
sub esp, 8
movsd qword [esp], xmm0
push str._.2f_MB
jmp 0x4043c1
sub esp, 8
movsd qword [esp], xmm0
push str._.2f_KB
lea eax, [ebp - 0x24c]
push eax
call fcn.0040a910
mov edi, dword [ebp - 0x24c]
add esp, 0x10
mov ecx, dword [0x5da8d4]
lea edx, [edi - 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x250], ecx
cmp edx, ecx
je 0x404459
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
mov dword [ebp - 0x244], eax
jl 0x404445
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x404445
push edx
call fcn.0040a460
mov edx, dword [ebp - 0x244]
add esp, 4
mov dword [ebp - 0x254], eax
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40443b
mov edi, dword [ebp - 0x250]
push edi
mov ecx, dword [edi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x254]
add eax, 0x10
mov dword [0x5da8d4], eax
jmp 0x404453
push dword [edi - 0xc]
mov ecx, 0x5da8d4
push edi
call fcn.0040a5a0
mov edx, dword [ebp - 0x23c]
mov dword [ebp - 0x254], 0
mov eax, ebx
mov byte [ebp - 4], 2
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40447b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x240]
lea edx, [edi + 0x10]
test edx, edx
jne 0x40448c
xor ecx, ecx
jmp 0x4044aa
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x240], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404497
sub ecx, dword [ebp - 0x240]
sar ecx, 1
push ecx
push edx
mov ecx, 0x5da8dc
call fcn.0040a5a0
mov eax, dword [0x5da8dc]
mov edx, dword [eax - 0xc]
add edx, 9
lea edx, [edi + edx*2]
test edx, edx
jne 0x4044cc
xor ecx, ecx
jmp 0x4044ea
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x240], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4044d7
sub ecx, dword [ebp - 0x240]
sar ecx, 1
push ecx
push edx
mov ecx, 0x5da8cc
call fcn.0040a5a0
mov eax, dword [0x5da8cc]
mov edx, dword [eax - 0xc]
mov eax, dword [0x5da8dc]
add edx, 0xa
add edx, dword [eax - 0xc]
lea edx, [edi + edx*2]
test edx, edx
jne 0x404514
xor ecx, ecx
jmp 0x404533
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x240], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404520
sub ecx, dword [ebp - 0x240]
sar ecx, 1
push ecx
push edx
mov ecx, 0x5da8e4
call fcn.0040a5a0
mov eax, dword [0x5da8e4]
push edi
mov ecx, dword [eax - 0xc]
mov eax, dword [0x5da8cc]
add ecx, dword [eax - 0xc]
mov eax, dword [0x5da8dc]
add ecx, dword [eax - 0xc]
mov eax, dword [edi + ecx*2 + 0x16]
mov dword [0x5da7c8], eax
call fcn.00552bd3
add esp, 4
mov eax, dword [0x5da8e4]
mov edx, 0x5afd50
mov ecx, eax
mov di, word [ecx]
cmp di, word [edx]
jne 0x40459b
test di, di
je 0x404597
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x40459b
add ecx, 4
add edx, 4
test di, di
jne 0x404575
xor ecx, ecx
jmp 0x4045a0
sbb ecx, ecx
or ecx, 1
mov byte [ebp - 4], 2
test ecx, ecx
jne 0x40460c
mov ecx, dword [0x5da8d0]
lea edi, [eax - 0x10]
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40460c
cmp dword [edi + 0xc], 0
jl 0x4045f9
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4045f9
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x240], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4045ef
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
add eax, 0x10
mov dword [0x5da8e4], eax
jmp 0x40460c
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5da8e4
call fcn.0040a5a0
mov eax, dword [0x5da8e4]
mov ecx, dword [0x5da918]
xorps xmm0, xmm0
mov edx, dword [0x5da91c]
movlpd qword [0x5da908], xmm0
cmp ecx, edx
je 0x40463f
push ecx
call fcn.0040a930
mov eax, dword [0x5da918]
add esp, 4
mov dword [0x5da91c], eax
mov eax, dword [0x5da8e4]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x23c], ecx
test ecx, ecx
js 0x405805
mov edx, dword [eax - 8]
mov edi, 1
sub edi, dword [eax - 4]
sub edx, ecx
or edx, edi
jge 0x404677
push ecx
mov ecx, 0x5da8e4
call fcn.0040a530
mov eax, dword [0x5da8e4]
mov ecx, dword [ebp - 0x23c]
inc ecx
push ecx
push eax
call fcn.00556132
mov eax, dword [0x5da8e4]
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [eax - 8]
jg 0x405805
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [0x5da8e4]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x23c]
call fcn.0040e5e0
push str.Crack
push eax
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 8
push eax
call fcn.004092d0
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, dword [eax]
mov edi, dword [0x5da8d8]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x40472d
cmp dword [edi + 0xc], 0
jl 0x40471f
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40471f
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x240], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404715
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
add eax, 0x10
mov dword [0x5da8d8], eax
jmp 0x40472d
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5da8d8
call fcn.0040a5a0
mov edx, dword [ebp - 0x244]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40474a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x23c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40476b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x5da8d8]
call fcn.0040db70
cmp eax, 0xffffffff
jne 0x404785
mov ecx, 0x5da8d8
call fcn.00409f40
push str._INSTALLER
lea eax, [ebp - 0x244]
push 0x5da8e4
push eax
call fcn.004092d0
add esp, 0xc
mov byte [ebp - 4], 0xa
mov ecx, dword [eax]
mov edi, dword [0x5da960]
add edi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, edi
je 0x404803
cmp dword [edi + 0xc], 0
jl 0x4047f5
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x4047f5
push edx
call fcn.0040a460
add esp, 4
mov dword [ebp - 0x240], eax
mov ecx, ebx
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4047eb
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x240]
add eax, 0x10
mov dword [0x5da960], eax
jmp 0x404803
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5da960
call fcn.0040a5a0
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404824
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x5da960]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x23c], ecx
test ecx, ecx
js 0x405805
mov edx, dword [eax - 8]
mov edi, 1
sub edi, dword [eax - 4]
sub edx, ecx
or edx, edi
jge 0x404861
push ecx
mov ecx, 0x5da960
call fcn.0040a530
mov eax, dword [0x5da960]
mov ecx, dword [ebp - 0x23c]
inc ecx
push ecx
push eax
call fcn.00556132
mov eax, dword [0x5da960]
add esp, 8
mov ecx, dword [ebp - 0x23c]
cmp ecx, dword [eax - 8]
jg 0x405805
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [0x5da960]
mov word [eax + ecx*2], dx
call fcn.00411723
test eax, eax
je 0x4048a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4048a2
xor eax, eax
push dword [0x5da960]
mov ecx, eax
call fcn.0042b70c
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4048d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x5da964
call fcn.0040a5a0
push 0xa
push str.tenoke.mid
mov ecx, 0x5da964
call fcn.0040a6c0
mov ecx, dword [0x5da964]
call fcn.0040db70
cmp eax, 0xffffffff
jne 0x4049b2
mov eax, dword [0x5da964]
push 0
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x5afe18
mov edi, eax
push 0x89
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x4049b2
push eax
push edi
mov dword [ebp - 0x23c], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp - 0x240]
mov dword [ebp - 0x250], eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 2
push 2
push 0
push 7
push 0x40000000
push dword [ebp - 0x244]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov edi, eax
lea eax, [ebp - 0x23c]
push eax
push ebx
push dword [ebp - 0x250]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
push 0x5da964
lea eax, [ebp - 0x240]
push str.Open
push eax
call fcn.00409140
push 0x5b05a0
push eax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xb
push eax
call fcn.004092d0
mov byte [ebp - 4], 2
add esp, 0x18
mov edx, dword [ebp - 0x240]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.WINMM.dll_mciSendStringW]
push 0
push 0
push 0
push dword [ebp - 0x23c]
call edi
push 0
push 0
push 0
push str.play_Music1_repeat
call edi
mov edx, dword [ebp - 0x23c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x404a40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call edi
sub eax, 0x320
cdq
sub eax, edx
mov ebx, eax
push 1
sar ebx, 1
call edi
sub eax, 0x1c2
push 1
cdq
push 0x1c2
sub eax, edx
push 0x320
sar eax, 1
push eax
push ebx
mov ebx, dword [ebp - 0x248]
mov ecx, ebx
call fcn.0042b55c
push 0
push 0
push 0x31
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.0042c438
mov dword [ebp - 0x24c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x238]
push eax
push dword [ebx + 0x20]
movups xmmword [ebp - 0x238], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebp - 0x234]
lea eax, [ebx + 0xd0]
mov dword [ebp - 0x23c], eax
mov eax, dword [eax]
push 0x44c
push dword [ebp - 0x248]
lea edi, [edx + 0xc8]
mov dword [ebp - 0x224], edx
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x21c], edi
lea ecx, [eax + 0x320]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x220], ecx
mov ecx, dword [ebp - 0x23c]
push eax
push 0x50000000
push 0x5afbec
call ebx
test eax, eax
je 0x40569e
call fcn.0042f166
push 0x5afe18
push 0x86
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x404ce3
call fcn.0042f166
push edi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x404ce3
call fcn.0042f166
push edi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x250], ebx
test ebx, ebx
je 0x404ce3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 0x240]
mov dword [ebp - 0x244], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
test ecx, ecx
je 0x404cdc
mov eax, dword [ebp - 0x244]
test eax, eax
je 0x404cdc
push edi
push ecx
push eax
call fcn.0054f9f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push ebx
mov ebx, dword [ebp - 0x23c]
mov ecx, ebx
call fcn.0040ada0
push dword [ebp - 0x250]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
je 0x404ce3
cmp dword [ebx + 0xb8], 0
je 0x404ce3
cmp dword [ebx + 0xac], 0
je 0x404c67
mov ecx, dword [ebx + 0xf0]
mov eax, 0x92492493
sub ecx, dword [ebx + 0xec]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x404c67
lea eax, [ebp - 0x258]
push eax
push 4
push ebx
push 0x40b960
push 0
push 0
call fcn.005563f5
add esp, 0x18
mov dword [ebx + 0xd4], eax
test eax, eax
je 0x404ce3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x404ce3
mov ecx, dword [ebx + 0xdc]
test ecx, ecx
je 0x404ce3
mov eax, dword [ecx]
lea edx, [ebp - 0x244]
push edx
push ecx
call dword [eax + 0x18]
mov ecx, dword [ebx + 0xdc]
lea edx, [ebp - 0x240]
push edx
push ecx
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov edi, dword [ebx + 0xdc]
mov ecx, dword [ebp - 0x240]
push 0
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov eax, ecx
neg eax
push eax
push dword [ebp - 0x244]
push ecx
push 0
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push 0
push 0
push dword [ebx + 0xbc]
push edi
call edx
test eax, eax
jne 0x404ce3
push eax
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x404ce3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x248]
mov edx, dword [ebp - 0x234]
push 0x44d
mov eax, dword [eax + 0x1d0]
lea ecx, [edx + 0x186]
add edx, 0xdc
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea edi, [eax + 0xc8]
add eax, 0xa
mov dword [ebp - 0x220], edi
mov edi, dword [ebp - 0x248]
push edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000007
push str.OPTIONS
lea ecx, [edi + 0x1d0]
call ebx
test eax, eax
je 0x40569e
mov eax, dword [edi + 0x450]
mov ecx, dword [ebp - 0x234]
push 0x44e
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea edi, [ecx + 0x112]
mov dword [ebp - 0x21c], edi
add ecx, 0xfa
mov edi, dword [ebp - 0x248]
push edi
lea edx, [eax + 0x36]
mov dword [ebp - 0x224], ecx
add eax, 0x1e
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x228], eax
lea ecx, [edi + 0x450]
lea eax, [ebp - 0x228]
push eax
push 0x50000000
push str.music
call ebx
test eax, eax
je 0x40569e
sub esp, 0x18
lea ecx, [edi + 0x450]
call fcn.0040ce30
mov eax, dword [edi + 0x3d0]
mov edx, dword [ebp - 0x234]
push 0x452
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea ecx, [edx + 0x120]
add edx, 0x100
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
lea edi, [eax + 0xa0]
add eax, 0x3c
mov dword [ebp - 0x220], edi
mov edi, dword [ebp - 0x248]
push edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000000
push str.MUSIC
lea ecx, [edi + 0x3d0]
call ebx
test eax, eax
je 0x40569e
mov eax, dword [edi + 0x548]
mov ecx, dword [ebp - 0x234]
push 0x453
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea edi, [ecx + 0x13b]
mov dword [ebp - 0x21c], edi
add ecx, 0x11d
mov edi, dword [ebp - 0x248]
push edi
lea edx, [eax + 0xbf]
mov dword [ebp - 0x224], ecx
add eax, 0x1f
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x228], eax
lea ecx, [edi + 0x548]
lea eax, [ebp - 0x228]
push eax
push 0x50000003
push str.COPY_CRACK
call ebx
test eax, eax
je 0x40569e
push 0
push dword [0x5d0a90]
push 0xf1
push dword [edi + 0x568]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x5c8]
mov ecx, dword [ebp - 0x234]
push 0x454
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea edi, [ecx + 0x156]
mov dword [ebp - 0x21c], edi
add ecx, 0x138
mov edi, dword [ebp - 0x248]
push edi
lea edx, [eax + 0xbf]
mov dword [ebp - 0x224], ecx
add eax, 0x1f
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x228], eax
lea ecx, [edi + 0x5c8]
lea eax, [ebp - 0x228]
push eax
push 0x50000003
push str.CREATE_DESKTOP_SHORTCUT
call ebx
test eax, eax
je 0x40569e
push 0
push dword [0x5d0a98]
push 0xf1
push dword [edi + 0x5e8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0x648]
mov ecx, dword [ebp - 0x234]
push 0x455
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea edi, [ecx + 0x171]
mov dword [ebp - 0x21c], edi
add ecx, 0x153
mov edi, dword [ebp - 0x248]
push edi
lea edx, [eax + 0xbf]
mov dword [ebp - 0x224], ecx
add eax, 0x1f
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x228], eax
lea ecx, [edi + 0x648]
lea eax, [ebp - 0x228]
push eax
push 0x50000003
push str.CREATE_UNINSTALLER
call ebx
test eax, eax
je 0x40569e
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [0x5d0a94]
push 0xf1
push dword [edi + 0x668]
call ebx
mov eax, dword [0x5da8d8]
cmp dword [eax - 0xc], 0
jne 0x405016
push 0
push 0
push 0xf1
push dword [edi + 0x568]
call ebx
push 0
lea ecx, [edi + 0x548]
call fcn.0042b280
mov eax, dword [0x5da8dc]
mov ecx, 0x5afd50
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405046
test dx, dx
je 0x405042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405046
add eax, 4
add ecx, 4
test dx, dx
jne 0x405020
xor eax, eax
jmp 0x40504b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 2
test eax, eax
jne 0x40506f
push eax
push eax
push 0xf1
push dword [edi + 0x5e8]
call ebx
push 0
lea ecx, [edi + 0x5c8]
call fcn.0042b280
cmp dword [0x5da7c8], 0
je 0x4050a0
push 0
push 0
push 0xf1
push dword [edi + 0x668]
call ebx
push 0
lea ecx, [edi + 0x648]
call fcn.0042b280
mov dword [0x5d0a94], 0
mov eax, dword [edi + 0x250]
mov edx, dword [ebp - 0x234]
push 0x45b
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea ecx, [edx + 0x186]
add edx, 0xdc
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
lea edi, [eax + 0x30c]
add eax, 0xd2
mov dword [ebp - 0x220], edi
mov edi, dword [ebp - 0x248]
push edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000007
push str.INSTALL_DIRECTORY
lea ecx, [edi + 0x250]
call ebx
test eax, eax
je 0x40569e
mov eax, dword [ebp - 0x238]
lea ebx, [edi + 0x6c8]
mov edx, dword [ebp - 0x234]
push 0x456
lea edi, [eax + 0x29e]
add eax, 0xf0
mov dword [ebp - 0x220], edi
lea ecx, [edx + 0x10e]
mov edi, dword [ebp - 0x248]
add edx, 0xfb
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push edi
push eax
mov dword [ebp - 0x21c], ecx
mov ecx, ebx
push 0x50800080
mov dword [ebp - 0x224], edx
call fcn.0042dca9
test eax, eax
je 0x40569e
mov eax, dword [edi + 0x748]
mov edx, dword [ebp - 0x234]
push 0x451
mov ebx, dword [eax + 0x164]
mov eax, dword [ebp - 0x238]
lea ecx, [edx + 0x110]
add edx, 0xf8
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x224], edx
lea edi, [eax + 0x2fd]
add eax, 0x2ad
mov dword [ebp - 0x220], edi
mov edi, dword [ebp - 0x248]
push edi
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000000
push str.BROWSER...
lea ecx, [edi + 0x748]
call ebx
test eax, eax
je 0x40569e
mov eax, dword [edi + 0x7c8]
mov ecx, dword [ebp - 0x234]
push 0xc
mov eax, dword [eax + 0x164]
mov dword [ebp - 0x25c], eax
lea edi, [ecx + 0x135]
mov eax, dword [ebp - 0x238]
add ecx, 0x11d
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], edi
lea edx, [eax + 0x302]
add eax, 0xf0
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], edx
call fcn.0041fce8
mov ebx, eax
mov dword [ebp - 0x23c], eax
add esp, 4
mov dword [ebp - 0x240], ebx
mov byte [ebp - 4], 0xd
test ebx, ebx
je 0x405279
push str._FREE_DISKSPACE
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call fcn.0054eab0
mov dword [ebx], eax
jmp 0x405281
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 2
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x40581e
push 0x5da8d4
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0xe
push str.REQUIRED
push eax
call fcn.00409140
mov ebx, dword [eax]
push 0xc
mov byte [ebp - 4], 0x10
call fcn.0041fce8
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x244], edi
mov byte [ebp - 4], 0x11
test edi, edi
je 0x4052f2
push ebx
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
jne 0x4052f4
test ebx, ebx
jne 0x405828
jmp 0x4052f4
xor edi, edi
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x244], edi
test edi, edi
je 0x40581e
push 0xc
mov dword [ebp - 0x254], 2
call fcn.0041fce8
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x405347
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x244]
push ecx
mov ecx, eax
call fcn.00403200
mov ecx, eax
mov dword [ebp - 0x250], eax
jmp 0x40534f
xor ecx, ecx
mov dword [ebp - 0x250], ecx
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x40581e
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 8], eax
dec eax
jne 0x4053a3
mov eax, dword [edi]
test eax, eax
je 0x40537b
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x405392
push eax
call fcn.00423e01
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.0054d9ec
mov ecx, dword [ebp - 0x250]
add esp, 8
mov edi, dword [ebp - 0x248]
lea eax, [ebp - 0x228]
push 0x457
push edi
push eax
push 0x50000000
push dword [ecx]
mov dword [ebp - 0x244], ecx
lea ecx, [edi + 0x7c8]
call dword [ebp - 0x25c]
mov dword [ebp - 0x25c], eax
mov ecx, ebx
mov eax, dword [ebp - 0x250]
lock xadd dword [eax + 8], ecx
dec ecx
jne 0x405426
mov ecx, dword [eax]
test ecx, ecx
je 0x4053fe
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x250]
mov dword [eax], 0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40541b
push ecx
call fcn.00423e01
mov eax, dword [ebp - 0x250]
add esp, 4
mov dword [eax + 4], 0
push 0xc
push eax
call fcn.0054d9ec
add esp, 8
mov edx, dword [ebp - 0x258]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405443
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp - 0x23c]
lock xadd dword [ecx + 8], eax
dec eax
jne 0x405498
mov eax, dword [ecx]
test eax, eax
je 0x405470
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x23c]
mov dword [ecx], 0
mov eax, dword [ecx + 4]
test eax, eax
je 0x40548d
push eax
call fcn.00423e01
mov ecx, dword [ebp - 0x23c]
add esp, 4
mov dword [ecx + 4], 0
push 0xc
push ecx
call fcn.0054d9ec
add esp, 8
cmp dword [ebp - 0x25c], 0
jne 0x4054b1
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jmp 0x4056ac
mov eax, dword [edi + 0x948]
lea ecx, [edi + 0x948]
mov edi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
push 0x45a
mov ebx, dword [eax + 0x164]
lea eax, [edi + 0xf0]
mov dword [ebp - 0x228], eax
lea eax, [edx + 0x136]
mov dword [ebp - 0x224], eax
lea eax, [edi + 0x29e]
mov edi, dword [ebp - 0x248]
mov dword [ebp - 0x220], eax
lea eax, [edx + 0x14e]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push edi
push eax
push 0x50000000
call ebx
test eax, eax
je 0x40569e
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0x3e80000
push 0
push 0x401
push dword [edi + 0x968]
call ebx
push 0
push 0
push 0x402
push dword [edi + 0x968]
call ebx
mov eax, dword [edi + 0x8c8]
lea ebx, [edi + 0x8c8]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
push 0x459
mov edi, dword [eax + 0x164]
push dword [ebp - 0x248]
lea eax, [ecx + 0x2c1]
mov dword [ebp - 0x228], eax
lea eax, [edx + 0x13b]
mov dword [ebp - 0x224], eax
lea eax, [ecx + 0x2fd]
mov dword [ebp - 0x220], eax
mov ecx, ebx
lea eax, [edx + 0x14f]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000000
push 0x5aff18
call edi
test eax, eax
je 0x40569e
mov ebx, dword [ebp - 0x248]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
push 0x44f
mov eax, dword [ebx + 0x2d0]
push ebx
mov edi, dword [eax + 0x164]
lea eax, [ecx + 0x12c]
mov dword [ebp - 0x228], eax
lea eax, [edx + 0x159]
mov dword [ebp - 0x224], eax
lea eax, [ecx + 0x190]
mov dword [ebp - 0x220], eax
lea ecx, [ebx + 0x2d0]
lea eax, [edx + 0x177]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000001
push 0x5aff1c
call edi
test eax, eax
je 0x40569e
mov eax, dword [ebx + 0x350]
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x234]
push 0x450
mov edi, dword [eax + 0x164]
lea eax, [ecx + 0x1f4]
mov dword [ebp - 0x228], eax
lea eax, [edx + 0x159]
mov dword [ebp - 0x224], eax
lea eax, [ecx + 0x258]
mov dword [ebp - 0x220], eax
lea ecx, [ebx + 0x350]
lea eax, [edx + 0x177]
push ebx
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push 0x50000000
push str.EXIT
call edi
test eax, eax
jne 0x4056d4
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4056b6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.0054d6d8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24c]
test eax, eax
je 0x4057de
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x1f0]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x270]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x568]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x5e8]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x668]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x3f0]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x7e8]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x6e8]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x8e8]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x768]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x2f0]
call edi
mov eax, dword [ebp - 0x24c]
push 1
push dword [eax + 4]
push 0x30
push dword [ebx + 0x370]
call edi
call fcn.004035d0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4057fb
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
jmp 0x4056b8
push 0x80070057
call fcn.00402740
call fcn.00553235
push 0x80004005
call fcn.00402740
push 0x8007000e
call fcn.0054ea90
push 0x8007000e
call fcn.0054ea90
int3