Function at 0x411710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dc950
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x30], ebx
movzx edi, word [ebp + 8]
mov eax, dword [0x518590]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push pe_nt_image_headers32
push edi
push eax
call esi
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x411785
mov ecx, dword [0x518590]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411785
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x2c], eax
mov edx, dword [0x518590]
push 5
push edi
push edx
call esi
test eax, eax
je 0x411a9e
push eax
mov eax, dword [0x518590]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411a95
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x411a95
movzx ecx, word [eax + 2]
mov dword [esp + 0x28], eax
xor eax, eax
mov edx, 0xffff
cmp cx, dx
sete al
cmp cx, dx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
lea ecx, [eax + 0x10]
je 0x4117e5
lea ecx, [eax + 8]
movzx edi, word [ecx]
mov ecx, eax
mov dword [esp + 0x38], edi
call fcn.00417910
mov esi, eax
mov eax, dword [ebx + 4]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
cmp dx, di
jae 0x411a9e
cmp dword [esp + 0x20], 0
je 0x411825
mov ebx, dword [esi + 0x14]
lea eax, [esi + 0x18]
jmp 0x41182c
movzx ebx, word [esi + 0x10]
lea eax, [esi + 0x12]
cmp word [eax], 0x7b
jne 0x411a31
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
xor edi, edi
mov dword [esp + 0x28], edi
call fcn.00417890
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x58], edi
cmp ebx, edi
je 0x4118a2
push ebx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x411a6a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esp + 0x24]
push ebx
push ecx
push ebx
push eax
call fcn.004a5469
push eax
call fcn.00405ac0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [esp + 0x18]
push edx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
xor edi, edi
mov dword [esp + 0x24], edi
lea eax, [esp + 0x24]
mov byte [esp + 0x58], 1
mov edi, dword [esp + 0x18]
push eax
call fcn.00417680
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jl 0x411a0c
call fcn.00417420
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4118e2
movzx eax, word [esi + 0xc]
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], ecx
jmp 0x4118ed
movzx eax, word [esi + 8]
lea edx, [esi + 0x12]
mov dword [esp + 0x14], edx
movsx edx, ax
mov dword [esp + 0x3c], edx
test ebx, ebx
je 0x4118fe
movzx eax, word [esi + 0xe]
jmp 0x411902
movzx eax, word [esi + 0xa]
movsx ecx, ax
mov dword [esp + 0x40], ecx
test ebx, ebx
je 0x411913
movzx eax, word [esi + 0x10]
jmp 0x411917
movzx eax, word [esi + 0xc]
cwde
add eax, edx
mov dword [esp + 0x44], eax
test ebx, ebx
je 0x411928
movzx eax, word [esi + 0x12]
jmp 0x41192c
movzx eax, word [esi + 0xe]
mov edi, dword [esp + 0x30]
movsx edx, ax
add edx, ecx
mov ecx, dword [edi + 4]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_MapDialogRect]
test ebx, ebx
je 0x411957
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 4]
mov eax, dword [esi + 8]
jmp 0x41195f
movzx edx, word [esi + 0x10]
mov eax, dword [esi]
xor ebx, ebx
mov ecx, dword [edi + 4]
mov edi, dword [0x51858c]
push 0
push edi
mov edi, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x50]
sub edx, ecx
push edx
mov edx, dword [esp + 0x50]
sub edi, edx
push edi
push ecx
push edx
or eax, 0x10000
push eax
push 0
push str.AtlAxWinLic90
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x411a03
cmp dword [esp + 0x20], 0
je 0x4119b8
mov eax, dword [esi]
test eax, eax
je 0x4119b8
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.00411b60
mov dword [esp + 0x14], eax
test eax, eax
jl 0x411a74
cmp word [esp + 0x28], 0
jne 0x4119e7
xor eax, eax
jmp 0x4119eb
mov eax, dword [esp + 0x1c]
push 0x13
push 0
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x1c], ebx
jmp 0x411a0c
call fcn.00405b90
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411a47
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x411a47
test cx, cx
je 0x411a47
mov eax, dword [esp + 0x1c]
push 2
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x20]
mov eax, esi
call fcn.004175d0
mov ecx, dword [esp + 0x28]
inc ecx
mov esi, eax
mov dword [esp + 0x28], ecx
cmp cx, word [esp + 0x38]
jb 0x411816
jmp 0x411a9e
mov dword [esp + 0x14], 0x8007000e
jmp 0x411a7b
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411a9e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x411a9e
call fcn.00405b90
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4