Function at 0x40c6e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439372
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [esp + 0x3c]
push str.CDlgLicenseAgreement::OnInitDialog
push eax
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x118], 0
mov ecx, edi
call fcn.0040a8c0
mov esi, dword [0x451ed4]
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00413d30
mov byte [esp + 0x118], 1
mov ecx, esi
call fcn.00413e20
mov ecx, dword [esp + 0x18]
mov ebx, 1
cmp dword [ecx - 4], ebx
mov esi, eax
jle 0x40c77c
mov edx, dword [ecx - 0xc]
push edx
lea ecx, [esp + 0x1c]
call fcn.00404330
mov ecx, dword [esp + 0x18]
call fcn.0040aac0
test eax, eax
je 0x40c882
test esi, esi
jle 0x40c882
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], ebx
jle 0x40c7ab
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00404330
mov eax, dword [esp + 0x18]
push 0
lea edx, [esi + esi*4]
push eax
add edx, edx
lea ecx, [edi + 0x80]
push edx
call fcn.0041f939
test eax, eax
je 0x40c882
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], 0xbbb
mov dword [esp + 0x28], 0xbbc
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], 0xbbf
xor ebx, ebx
lea ecx, [ecx]
mov esi, dword [esp + ebx*4 + 0x24]
push esi
mov ecx, edi
call fcn.0041f419
mov ebp, eax
test ebp, ebp
je 0x40c871
lea eax, [edi + 0x80]
test eax, eax
je 0x40c80f
mov eax, dword [eax + 4]
push 1
push eax
mov eax, dword [ebp + 0x20]
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp esi, 0xbbc
jne 0x40c871
lea ecx, [esp + 0x1c]
call fcn.00404d50
mov byte [esp + 0x118], 2
push 0xfb8
call fcn.004171c8
test eax, eax
je 0x40c854
push 0xfb8
push eax
lea ecx, [esp + 0x24]
call fcn.00404500
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.0041f516
mov byte [esp + 0x118], 1
lea ecx, [esp + 0x1c]
call fcn.00405f60
add ebx, 1
cmp ebx, 5
jb 0x40c7f0
mov ebx, 1
call fcn.004157f0
mov eax, dword [eax + 0xc]
push str.TEXT
push 0x44c
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor ebp, ebp
test esi, esi
je 0x40c8c0
call fcn.004157f0
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c8c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
push ebp
lea ecx, [esp + 0x24]
call fcn.00404c50
mov byte [esp + 0x118], 3
mov ecx, dword [edi + 0xac]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x40]
push eax
push 2
push 0x449
lea edx, [esp + 0x2c]
push ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], 0x40c4a0
call ebp
mov edx, dword [edi + 0xac]
push 0x8000
push 2
push 0x44d
push edx
call ebp
mov ecx, edi
call fcn.0041f4d2
test eax, 0x2000
je 0x40c98d
push 0xffffffffffffffff
lea esi, [edi + 0x8c]
push 0
mov ecx, esi
call fcn.00414d9c
push 0xbc
lea eax, [esp + 0x50]
push 0
push eax
call fcn.004250c0
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov dword [esp + 0x50], 0xbc
mov dword [esp + 0x54], 0x10008
mov word [esp + 0x68], 2
mov word [esp + 0x5a], bx
call fcn.00414dc5
push 0
push 0
mov ecx, esi
call fcn.00414d9c
mov edx, dword [edi + 0xac]
push 0x100
push 2
push 0x44d
push edx
call ebp
mov byte [esp + 0x118], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x118], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c9dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x118], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.00405a70
mov eax, ebx
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret