Function at 0x401a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x40413b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x824
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x24], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov esi, dword [esp + 0x844]
mov al, byte [esp + 0x848]
xor ebp, ebp
mov ecx, esi
mov edx, dword [esi]
mov dword [esp + 0x83c], ebp
mov word [esp + 0x14], bp
mov word [esp + 0x16], bp
mov byte [esp + 0x18], 3
mov byte [esp + 0x19], 0
mov byte [esp + 0x1a], 0
mov byte [esp + 0x1b], al
mov word [esp + 0x28], bp
mov word [esp + 0x2a], bp
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 1
mov byte [esp + 0x2e], 0xfa
mov byte [esp + 0x2f], 0
call dword [edx + 0x10]
cmp eax, 2
jne 0x401b1e
mov ebx, 1
mov edi, 0x800
mov dword [esp + 0x1c], ebx
jmp 0x401b39
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
cmp eax, 4
jne 0x401df8
mov edi, 0x200
mov dword [esp + 0x1c], eax
mov ebx, eax
push 0x40605c
push 0x84
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov eax, 0xff803fe1
mul ecx
mov ecx, dword [esp + 0x24]
mov ebp, edx
shr ebp, 0xb
push 0x3ee
mov dword [esp + 0x34], ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [ebp - 2]
and ecx, 0xffff
shl ecx, 0x10
push ecx
push 0
push 0x401
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x10]
mov edx, dword [esi]
mov byte [esp + 0x1a], 0xbd
push 0
mov ecx, dword [eax + 0x1008]
push 0
push 8
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ecx
push 0
push eax
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x24]
mov al, byte [ecx + 0x64]
test al, al
jne 0x401bef
push 0x20
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
mov byte [esp + 0x1a], 0xfa
push 0
push edi
mov eax, dword [edx + 0x1008]
mov edx, dword [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
push 8
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
cmp ebx, 1
jle 0x401c41
lea ebp, [esp + edi + 0x34]
dec ebx
mov edx, dword [esi]
push 0
push edi
push 8
lea eax, [esp + 0x34]
push ebp
push eax
mov ecx, esi
call dword [edx + 0xc]
add ebp, edi
dec ebx
jne 0x401c22
mov ebp, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov cl, 1
mov edx, eax
and edx, 3
cmp dl, 3
je 0x401c58
cmp byte [esp + eax + 0x34], 0xff
je 0x401c58
xor cl, cl
inc eax
cmp eax, 0x800
jl 0x401c45
test cl, cl
je 0x401bb5
lea eax, [ebp - 1]
cmp eax, 2
mov dword [esp + 0x20], eax
jl 0x401df8
mov edx, dword [esp + 0x10]
mov ecx, eax
shl ecx, 9
add ecx, eax
lea ebp, [edx + ecx*4]
mov dword [esp + 0x10], ebp
jmp 0x401c94
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esi]
mov byte [esp + 0x1a], 0xbd
mov eax, dword [ebp]
push 0
mov dword [esp + 0x18], eax
push 0
push 8
lea eax, [esp + 0x20]
push 0
push eax
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x24]
mov al, byte [ecx + 0x64]
test al, al
jne 0x401cc7
push 0x20
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
push 0
push 0
push 8
lea eax, [esp + 0x20]
push 0
push eax
mov ecx, esi
mov byte [esp + 0x2e], 0xbc
call dword [edx + 0xc]
test ebx, ebx
jle 0x401d03
add ebp, 4
mov edx, dword [esi]
push 0
push 0
push edi
push 0
push ebp
mov ecx, esi
call dword [edx + 0xc]
add ebp, edi
dec ebx
jne 0x401ce7
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esi]
mov byte [esp + 0x1a], 0xfa
mov eax, dword [ebp]
push 0
mov dword [esp + 0x18], eax
push edi
lea eax, [esp + 0x3c]
push 8
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
cmp ebx, 1
jle 0x401d46
lea ebp, [esp + edi + 0x34]
dec ebx
mov edx, dword [esi]
push 0
push edi
push 8
lea eax, [esp + 0x34]
push ebp
push eax
mov ecx, esi
call dword [edx + 0xc]
add ebp, edi
dec ebx
jne 0x401d2f
xor eax, eax
mov bl, 1
mov ecx, eax
and ecx, 3
cmp cl, 3
je 0x401d66
mov edx, dword [esp + 0x10]
mov cl, byte [edx + eax + 4]
mov dl, byte [esp + eax + 0x34]
cmp cl, dl
je 0x401d66
xor bl, bl
inc eax
cmp eax, 0x800
jl 0x401d4a
mov ebp, dword [esp + 0x24]
push 0x3ee
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x20]
sub edx, ecx
push 0
push edx
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x3ee
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, dword [eax + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x3ee
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
push 0x105
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_RedrawWindow]
test bl, bl
je 0x401ded
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
dec ecx
sub eax, 0x804
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 2
jge 0x401c8c
mov dword [esp + 0x83c], 0xffffffff
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x834]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x830
ret 8