Function at 0x402a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x510165
mov eax, dword fs:[0]
push eax
mov eax, 0x1a0c
call fcn.0050c2d0
mov eax, dword [0x551aa8]
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 eax, dword [ebp + 8]
mov edi, ecx
push 0
mov dword [ebp - 0x19d4], eax
mov dword [ebp - 0x19dc], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [ebp + 0xc]
push 0x53e904
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x9001
push edi
lea ecx, [ebp - 0x1a14]
mov esi, eax
call dword [sym.imp.mfc100u.dll_CFile::CFile]
mov dword [ebp - 4], 0
call dword [sym.imp.mfc100u.dll_AfxGetModuleState]
mov eax, dword [eax + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
lea ecx, [ebp - 0x1a14]
call dword [sym.imp.mfc100u.dll_CFile::Write]
lea ecx, [ebp - 0x1a14]
call dword [sym.imp.mfc100u.dll_CFile::Close]
push edi
lea ecx, [ebp - 0x19d8]
call dword [0x511858]
push 0x103
lea edx, [ebp - 0x117]
push 0
mov byte [ebp - 4], 1
push edx
mov byte [ebp - 0x118], 0
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x19d8]
add esp, 0xc
push 3
push ecx
lea edx, [ebp - 0x19d0]
lea eax, [ebp - 0x19cc]
push edx
mov dword [ebp - 0x19d0], eax
call fcn.004031d0
mov eax, dword [ebp - 0x19d0]
push 0x104
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
mov eax, dword [ebp - 0x19d0]
lea edx, [ebp - 0x19cc]
add esp, 0xc
cmp eax, edx
je 0x402b8a
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ebx, dword [ebp - 0x19d4]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 4]
cmp eax, edx
je 0x402bd2
mov dword [ebp - 0x19d4], eax
mov eax, edx
cmp edx, edx
je 0x402bc9
mov edi, dword [ebp - 0x19d4]
add dword [ebp - 0x19d4], 0x20
mov esi, eax
add eax, 0x20
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
jne 0x402ba6
mov edi, dword [ebp - 0x19dc]
mov eax, dword [ebp - 0x19d4]
mov dword [ebx + 8], eax
lea esi, [ebp - 0x1a00]
call fcn.0041c500
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x916]
mov byte [ebp - 4], 2
push edx
mov word [ebp - 0x918], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1916]
push ecx
mov word [ebp - 0x1918], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1116]
push eax
mov word [ebp - 0x1118], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, esi
push ecx
lea ecx, [ebp - 0x118]
call fcn.0041c660
test al, al
jne 0x402c8a
mov ecx, edi
call fcn.004145f0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1a00]
push edx
call fcn.0041c570
lea ecx, [ebp - 0x19d8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x1a14]
mov dword [ebp - 4], 0xffffffff
call dword [0x511864]
xor al, al
jmp 0x402f02
push 1
mov eax, str.document
lea edi, [ebp - 0x1a00]
call fcn.0041c830
test al, al
je 0x402eba
jmp 0x402cb0
push 0
mov eax, str.ContrlListData
lea edi, [ebp - 0x1a00]
call fcn.0041c830
test al, al
je 0x402ea1
lea ebx, [ebx]
push 0x400
push str.RectPos
lea eax, [ebp - 0x1a00]
call fcn.0041c9d0
mov esi, dword [sym.imp.MSVCR100.dll_wcsncpy_s]
push eax
lea eax, [ebp - 0x918]
push 0x400
push eax
call esi
add esp, 0x10
push 0x400
push str.Type
lea eax, [ebp - 0x1a00]
call fcn.0041c9d0
push eax
lea ecx, [ebp - 0x1918]
push 0x400
push ecx
call esi
add esp, 0x10
push 0x400
push str.Enum
lea eax, [ebp - 0x1a00]
call fcn.0041c9d0
push eax
lea edx, [ebp - 0x1118]
push 0x400
push edx
call esi
add esp, 0x10
lea eax, [ebp - 0x1948]
push eax
lea ecx, [ebp - 0x918]
push ecx
call fcn.00402fb0
mov esi, dword [sym.imp.MSVCR100.dll__wtoi]
lea edx, [ebp - 0x1918]
push edx
call esi
mov dword [ebp - 0x1930], eax
lea eax, [ebp - 0x1118]
add esp, 4
push eax
call esi
mov edx, dword [ebp - 0x1944]
mov ecx, dword [ebp - 0x1948]
mov dword [ebp - 0x192c], eax
mov eax, dword [ebp - 0x1940]
mov dword [ebp - 0x1924], edx
mov dword [ebp - 0x1920], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x1928], ecx
mov ecx, dword [ebp - 0x193c]
lea edx, [ebp - 0x1938]
add esp, 4
mov dword [ebp - 0x191c], ecx
cmp edx, eax
jae 0x402e29
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0x1938]
cmp edx, ecx
ja 0x402e29
mov esi, ecx
mov ecx, dword [ebx + 0xc]
sub esi, edx
cmp eax, ecx
jne 0x402e1a
sub eax, edx
sar eax, 5
cmp eax, 0x7fffffe
ja 0x402f20
sub ecx, edx
inc eax
sar ecx, 5
cmp eax, ecx
jbe 0x402e1a
mov edx, ecx
shr edx, 1
mov edi, 0x7ffffff
sub edi, edx
cmp edi, ecx
jae 0x402e0a
xor ecx, ecx
jmp 0x402e0c
add ecx, edx
cmp ecx, eax
jae 0x402e12
mov ecx, eax
lea edx, [ebx + 4]
call fcn.00403320
mov edi, dword [ebx + 8]
and esi, 0xffffffe0
add esi, dword [ebx + 4]
test edi, edi
je 0x402e84
jmp 0x402e7d
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jne 0x402e70
mov edx, dword [ebx + 4]
sub eax, edx
sar eax, 5
cmp eax, 0x7fffffe
ja 0x402f20
sub ecx, edx
inc eax
sar ecx, 5
cmp eax, ecx
jbe 0x402e70
mov edx, ecx
shr edx, 1
mov esi, 0x7ffffff
sub esi, edx
cmp esi, ecx
jae 0x402e60
xor ecx, ecx
jmp 0x402e62
add ecx, edx
cmp ecx, eax
jae 0x402e68
mov ecx, eax
lea edx, [ebx + 4]
call fcn.00403320
mov edi, dword [ebx + 8]
test edi, edi
je 0x402e84
lea esi, [ebp - 0x1938]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
add dword [ebx + 8], 0x20
push str.ContrlListData
lea edx, [ebp - 0x1a00]
push edx
call fcn.0041c910
test al, al
jne 0x402cd0
push str.document
lea eax, [ebp - 0x1a00]
push eax
call fcn.0041c910
test al, al
jne 0x402cb0
mov ecx, dword [ebp - 0x19dc]
call fcn.004145f0
mov ecx, dword [ebx + 4]
mov byte [ebp - 4], 1
cmp ecx, dword [ebx + 8]
je 0x402c58
lea eax, [ebp - 0x1a00]
push eax
call fcn.0041c570
lea ecx, [ebp - 0x19d8]
call dword [sym.imp.mfc100u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_cla]
lea ecx, [ebp - 0x1a14]
mov dword [ebp - 4], 0xffffffff
call dword [0x511864]
mov al, 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.0050bf32
mov esp, ebp
pop ebp
ret 8
push str.vector_T__too_long
call dword [0x546e68]
int3