Function at 0x4211f0
Capabilities:
Extract resource via kernel32 functions
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0xc]
push eax
call fcn.00420730
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x4215ca
mov ecx, dword [0x521620]
add ecx, 1
cmp ecx, 0x65
jge 0x4215bb
push 5
movzx edx, word [ebp + 8]
push edx
mov eax, dword [0x521dfc]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x42124d
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0x3ef
xor eax, eax
jmp 0x4215e5
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [0x521dfc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x68], eax
mov ecx, dword [0x521620]
add ecx, 1
mov dword [0x521620], ecx
push 0x50
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x44], 0
cmp dword [ebp + 0x14], 0
je 0x4212b5
cmp dword [ebp + 0x10], 0
jl 0x4212b5
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx*4 + 0x514f20]
mov dword [ecx + 0x3c], eax
jmp 0x4212bf
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x28], 0x40001
mov dword [0x516020], 0
mov dword [0x516024], 0
mov dword [0x516028], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [0x51602c], 1
cmp dword [ebp + 0x10], 0xffffffff
jne 0x421309
call fcn.00421d00
mov dword [ebp - 0x44], eax
jmp 0x421316
mov edx, dword [ebp + 0x10]
mov eax, dword [edx*4 + 0x514ff0]
mov dword [ebp - 0x44], eax
mov ecx, dword [0x522098]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x40]
push edx
push 0x421d60
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [0x521dfc]
push edx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov ecx, dword [0x521620]
mov dword [ecx*4 + 0x513fb0], eax
mov dword [0x51602c], 0
mov edx, dword [0x521620]
cmp dword [edx*4 + 0x513fb0], 0
je 0x42159d
mov eax, dword [0x521620]
mov dword [0x513fa0], eax
mov ecx, dword [0x513fa0]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x513fa0]
mov ecx, dword [eax*4 + 0x513fb0]
push ecx
call fcn.00428560
add esp, 0xc
push 5
mov edx, dword [0x513fa0]
mov eax, dword [edx*4 + 0x513fb0]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x421593
push 0xffffffffffffffeb
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x42157f
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.00419ad0
add esp, 0xc
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x4c], ecx
mov edx, dword [ebp - 0x58]
cmp dword [edx + 0x30], 0
je 0x421410
push 2
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x4c], eax
push 0xffffffffffffffe0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.USER32.dll_GetClassWord]
movzx edx, ax
movzx eax, word [0x522190]
cmp edx, eax
jne 0x42157f
push 0xfffffffffffffff0
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
and edx, 0x80
jne 0x421454
mov eax, dword [ebp - 0x50]
and eax, 0x40
je 0x42157f
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add eax, 1
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 1
jle 0x42157f
mov edx, dword [ebp - 0x64]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004366b0
add esp, 4
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x80], eax
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x30
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.004d0d90
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov ecx, dword [0x513fa0]
mov edx, dword [ecx*4 + 0x513fb0]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0x11
push 0
mov ecx, dword [0x521dfc]
push ecx
push 0
mov edx, dword [0x513fa0]
mov eax, dword [edx*4 + 0x513fb0]
push eax
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000003
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp - 0x58]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0x404
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0x7c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0xd
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x80]
push edx
call fcn.00436670
add esp, 8
cmp eax, 0xffffffff
je 0x42157f
push 0x1f4
push 0
push 0x418
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 2
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x4c], eax
jmp 0x4213ab
mov eax, dword [ebp - 0x60]
mov dword [0x522098], eax
jmp 0x4215b9
mov ecx, dword [0x521620]
sub ecx, 1
mov dword [0x521620], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0x440
xor eax, eax
jmp 0x4215e5
jmp 0x4215c8
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x43f
xor eax, eax
jmp 0x4215e5
jmp 0x4215d3
mov ecx, dword [ebp - 0x38]
mov dword [0x513fa0], ecx
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
xor eax, eax
cmp dword [ebp - 0x38], 0xffffffff
setne al
mov esp, ebp
pop ebp
ret