Function at 0x406071
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x84], ecx
push 4
mov eax, dword [ebp + 8]
push eax
call sub.mfc42.dll_AfxFindResourceHandle
mov dword [ebp - 0x14], eax
push 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4060d3
mov dword [ebp - 0x14], 0
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4060e0
xor eax, eax
jmp 0x406569
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4060fe
xor eax, eax
jmp 0x406569
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x84]
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x84]
call fcn.0040ba80
test eax, eax
jne 0x406125
xor eax, eax
jmp 0x406569
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
xor edx, edx
mov dx, word [ecx + 2]
mov eax, dword [ebp - 0x60]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x24], 0
mov word [ebp - 0x64], 0
mov word [ebp - 0x10], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x58]
call fcn.0040b1c0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040c380
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040bfa0
push 0
lea ecx, [ebp - 0x3c]
call fcn.0040c410
push 2
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x64]
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x5c]
add edx, 2
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
and eax, 0x10
test eax, eax
jne 0x4061e1
push 2
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x5c]
add eax, 2
mov dword [ebp - 0x5c], eax
jmp 0x4061e7
mov word [ebp - 0x10], 0
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
and edx, 0x80
test edx, edx
je 0x40620b
mov eax, dword [ebp - 0x1c]
sub eax, 0x80
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
lea edx, [eax + eax + 2]
push edx
call sub.mfc42.dll_operatornew
add esp, 4
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 8
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
add esp, 4
mov ecx, dword [ebp - 0x5c]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x64]
and eax, 0xffff
and eax, 0x10
test eax, eax
je 0x40635a
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x406296
push 1
lea ecx, [ebp - 0x58]
call fcn.0040a880
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040c3f0
push 0x5c
call fcn.0040aba0
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x78], 0
je 0x4062ba
mov ecx, dword [ebp - 0x78]
call fcn.004013f5
mov dword [ebp - 0x88], eax
jmp 0x4062c4
mov dword [ebp - 0x88], 0
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x50], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x4c]
mov dword [ecx + 0x4c], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x84]
mov eax, dword [edx + 0x44]
mov dword [ecx + 0x44], eax
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x48], 1
mov ecx, dword [ebp - 0x68]
call fcn.0040baa0
push 0xffffffffffffffff
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0x58]
call fcn.0040a880
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bfc0
mov ecx, dword [eax]
call fcn.00404489
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bfa0
push 0
lea ecx, [ebp - 0x3c]
call fcn.0040c410
jmp 0x40640c
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040a880
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bfc0
mov ecx, dword [eax]
call fcn.00404489
mov ecx, dword [ebp - 0x64]
and ecx, 0xffff
and ecx, 0x80
test ecx, ecx
je 0x4063ac
push 1
lea ecx, [ebp - 0x58]
call fcn.0040a880
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040c3f0
lea ecx, [ebp - 0x58]
call fcn.0040a880
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x40640c
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040c3d0
test eax, eax
je 0x40640c
lea ecx, [ebp - 0x58]
call fcn.0040a880
push eax
lea ecx, [ebp - 0x58]
call fcn.0040bfc0
mov ecx, dword [eax]
call fcn.00406856
push 1
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x58]
call sub.mfc42.dll_CDWordArray::RemoveAt
push 1
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040c440
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
jmp 0x4063b7
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call sub.mfc42.dll_operatordelete
add esp, 4
lea ecx, [ebp - 0x58]
call fcn.0040a880
cmp eax, 0xffffffff
jne 0x40619a
mov dword [ebp - 0x20], 0
jmp 0x406441
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x84]
call fcn.0040bbc0
cmp dword [ebp - 0x20], eax
jge 0x406537
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.0040bed0
mov ecx, dword [eax]
call fcn.004012ad
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00409790
test eax, eax
je 0x4064d6
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.0040bed0
mov ecx, dword [eax]
mov dword [ecx + 0x14], 0x410
lea ecx, [ebp - 0x6c]
call fcn.0040ae40
push eax
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x84]
call fcn.00409790
mov eax, dword [eax + 4]
push eax
push 0x410
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.0040bd10
jmp 0x406526
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.0040bed0
mov eax, dword [eax]
mov dword [eax + 0x14], 0x400
lea ecx, [ebp - 0x6c]
call fcn.0040ae40
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
add ecx, 8
call fcn.0040bed0
mov edx, dword [eax]
mov eax, dword [edx + 0x18]
push eax
push 0x400
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x84]
call fcn.0040bd10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6c]
call sub.mfc42.dll_CString::CString
jmp 0x406438
mov edx, dword [ebp - 0x84]
mov dword [edx + 0x58], 1
mov dword [ebp - 0x80], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.0040c4c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.0040b1e0
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4