Function at 0x41702a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fdb4e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5475b0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x5475b0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [ebp + 8]
movzx eax, ax
push 0xf0
push eax
push dword [0x54d740]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, dword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
mov dword [esp + 0x28], ecx
test eax, eax
je 0x4170ad
push eax
push dword [0x54d740]
call ebx
test eax, eax
je 0x4170ad
push eax
call esi
mov dword [esp + 0x28], eax
push 5
push dword [esp + 0x14]
push dword [0x54d740]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4173d9
push eax
push dword [0x54d740]
call ebx
test eax, eax
je 0x4173d2
push eax
call esi
test eax, eax
je 0x4173d2
movzx ecx, word [eax + 2]
xor edx, edx
mov esi, 0xffff
cmp cx, si
sete dl
cmp cx, si
mov dword [esp + 0x20], edx
lea ecx, [eax + 0x10]
je 0x417103
lea ecx, [eax + 8]
movzx esi, word [ecx]
mov ecx, eax
mov dword [esp + 0x34], esi
call fcn.0041c9bd
mov ebx, eax
mov eax, dword [esp + 0x2c]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
xor eax, eax
cmp ax, si
jae 0x4173d9
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x417142
mov edx, dword [ebx + 0x14]
jmp 0x417146
movzx edx, word [ebx + 0x10]
test ecx, ecx
lea esi, [ebx + 0x12]
lea eax, [ebx + 0x18]
cmovne esi, eax
mov dword [esp + 0x30], esi
cmp word [esi], 0x7b
jne 0x417368
mov eax, dword [esp + 0x28]
mov ecx, eax
and dword [esp + 0x10], 0
test eax, eax
je 0x41718d
movzx eax, word [ecx]
add ecx, 2
mov dword [esp + 0x18], ecx
movzx edi, word [ecx]
mov esi, dword [ecx + 2]
add ecx, 6
cmp eax, edx
je 0x417222
add ecx, esi
jne 0x41716e
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x14], ecx
and dword [esp + 0x58], ecx
test esi, esi
je 0x4171ed
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4173ac
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4173a3
push esi
push dword [esp + 0x14]
push esi
push eax
call fcn.004d9745
push eax
call fcn.00402c87
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x14]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x14]
and dword [esp + 0x18], 0
lea edx, [esp + 0x18]
mov byte [esp + 0x58], 1
call fcn.0041c7e0
mov edi, eax
test edi, edi
js 0x417349
and dword [esp + 0x10], 0
call fcn.0041c58f
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x417240
movzx eax, word [ebx + 0xc]
jmp 0x417244
mov eax, 0x378
cmp di, ax
je 0x41718d
mov eax, dword [esp + 0x18]
add esi, 6
mov dword [esp + 0x10], eax
jmp 0x41718f
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x38], edx
test ecx, ecx
je 0x417255
movzx eax, word [ebx + 0xe]
jmp 0x417259
movzx eax, word [ebx + 0xa]
movsx esi, ax
mov dword [esp + 0x3c], esi
test ecx, ecx
je 0x41726a
movzx eax, word [ebx + 0x10]
jmp 0x41726e
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x41727f
movzx eax, word [ebx + 0x12]
jmp 0x417283
movzx eax, word [ebx + 0xe]
cwde
add eax, esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4172a9
mov edx, dword [ebx + 0x14]
jmp 0x4172ad
movzx edx, word [ebx + 0x10]
test edi, edi
je 0x4172b6
mov ecx, dword [ebx + 4]
jmp 0x4172b8
xor ecx, ecx
test edi, edi
je 0x4172c1
mov eax, dword [ebx + 8]
jmp 0x4172c3
mov eax, dword [ebx]
push ecx
push edx
push ecx
or eax, 0x10000
lea ecx, [esp + 0x1c]
push eax
push 0
lea eax, [esp + 0x4c]
push eax
push dword [esi + 4]
push 0x513ee0
call fcn.0041c731
mov esi, dword [esp + 0x10]
test esi, esi
je 0x417342
test edi, edi
je 0x4172fe
cmp dword [ebx], 0
je 0x4172fe
push dword [ebx]
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x18]
lea ecx, [esp + 0x14]
sub esp, 0x10
push dword [esp + 0x28]
push dword [esp + 0x48]
call fcn.004173fb
mov edi, eax
test edi, edi
js 0x4173b3
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp word [esp + 0x1c], cx
push 0x13
push ecx
push ecx
push ecx
push ecx
cmove eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x24], esi
jmp 0x417349
call fcn.0041c9a6
mov edi, eax
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417380
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x417380
cmp word [esp + 0x1c], 0
je 0x417380
push 2
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0041c783
mov ebx, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp ax, word [esp + 0x34]
jb 0x417135
jmp 0x4173d9
call fcn.0041c9a6
mov edi, eax
jmp 0x4173bd
mov edi, 0x8007000e
jmp 0x4173bd
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4173d9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4173d9
call fcn.0041c9a6
mov edi, eax
mov eax, edi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004d9731
mov esp, ebp
pop ebp
ret 4