Function at 0x408610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x60
mov eax, dword [0x4a4100]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov esi, ecx
push eax
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
mov dword [esp + 0x30], edi
test edi, edi
je 0x40865e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x408675
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0046f01c
add esp, 0x60
ret 0xc
xor eax, eax
mov ecx, 0xffff
cmp cx, word [ebx + 2]
push 0
sete al
mov dword [esp + 0x28], eax
test eax, eax
je 0x408727
mov ecx, 6
mov esi, ebx
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x5c]
movzx edx, word [esp + 0x60]
mov edi, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
and eax, 0xefffffbf
mov dword [esp + 0x1c], edx
mov word [esp + 0x6a], cx
mov ecx, dword [esp + 0x18]
xor edx, edx
push ecx
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x70], dx
push ebp
lea edx, [esp + 0x58]
mov word [esp + 0x68], ax
mov word [esp + 0x76], ax
mov eax, dword [esp + 0x28]
shr edi, 0x1c
push edx
and edi, 1
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x408a8a
movsx ecx, word [esp + 0x64]
movsx edx, word [esp + 0x62]
push 0x16
push ecx
push edx
push 0
push 0
push 0
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
lea esi, [ebx + 0x18]
jmp 0x4087c7
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x44], ecx
mov ecx, eax
mov dword [esp + 0x40], edx
mov dx, word [ebx + 0x10]
mov dword [esp + 0x14], eax
and eax, 0xefffffbf
mov dword [esp + 0x38], eax
movzx eax, word [esp + 0x40]
mov word [esp + 0x48], dx
xor edx, edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x4a], dx
mov edx, dword [esp + 0x18]
xor eax, eax
push edx
shr ecx, 0x1c
and ecx, 1
mov word [esp + 0x50], ax
push ebp
lea eax, [esp + 0x40]
mov dword [esp + 0x2c], ecx
xor ecx, ecx
push eax
push esi
mov word [esp + 0x50], cx
mov word [esp + 0x5e], cx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x408a84
movsx ecx, word [esp + 0x44]
movsx edx, word [esp + 0x42]
push 0x16
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
lea esi, [ebx + 0x12]
mov ecx, 0xffff
cmp cx, word [esi]
je 0x4087de
mov dx, word [esi]
add esi, 2
test dx, dx
jne 0x4087d1
jmp 0x4087e1
add esi, 4
mov eax, ecx
cmp ax, word [esi]
je 0x4087fd
jmp 0x4087f0
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x4087f0
jmp 0x408800
add esi, 4
mov dx, word [esi]
add esi, 2
test dx, dx
jne 0x408800
test dword [esp + 0x10], 0x40
je 0x408830
xor eax, eax
cmp dword [esp + 0x24], eax
setne al
lea eax, [eax + eax + 1]
lea esi, [esi + eax*2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x408825
mov eax, dword [esp + 0x18]
add esi, 3
and esi, 0xfffffffc
mov dword [esp + 0x28], 0
test eax, eax
jle 0x408a8a
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x24], 0
lea ebx, [esi + 0x18]
jne 0x40885b
lea ebx, [esi + 0x12]
mov edx, 0xffff
cmp dx, word [ebx]
jne 0x4088c6
movzx eax, word [ebx + 2]
add eax, 0xffffff80
cmp eax, 5
ja case.0x408871.130
jmp dword [eax*4 + 0x408ac0]
mov dword [esp + 0x10], str.Button
add ebx, 4
jmp 0x4088db
mov dword [esp + 0x10], str.Edit
add ebx, 4
jmp 0x4088db
mov dword [esp + 0x10], str.ListBox
add ebx, 4
jmp 0x4088db
mov dword [esp + 0x10], str.Scrollbar
add ebx, 4
jmp 0x4088db
mov dword [esp + 0x10], str.ComboBox
add ebx, 4
jmp 0x4088db
mov dword [esp + 0x10], str.Static
add ebx, 4
jmp 0x4088db
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x4088d0
mov ecx, edx
cmp cx, word [ebx]
jne 0x408996
movzx edx, word [ebx + 2]
mov dword [esp + 0x18], edx
xor ecx, ecx
mov ebp, 0x104
mov eax, ebp
mov edx, 2
add ebx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a020
mov edi, eax
add esp, 4
test edi, edi
je 0x408985
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x40897a
inc eax
cmp eax, ebp
jl 0x408985
mov eax, ebp
cdq
and edx, 7
add eax, edx
sar eax, 3
push edi
lea ebp, [eax + ebp + 0x104]
call fcn.0046f324
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a020
mov edi, eax
add esp, 8
test edi, edi
jne 0x408917
mov ebp, dword [esp + 0x14]
test edi, edi
setne al
mov dword [esp + 0x18], eax
jmp 0x4089b3
push edi
call fcn.0046f324
add esp, 4
xor edi, edi
mov ebp, dword [esp + 0x14]
xor eax, eax
test edi, edi
setne al
mov dword [esp + 0x18], eax
jmp 0x4089b3
mov edi, ebx
jmp 0x4089a0
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4089a0
mov dword [esp + 0x18], 0
cmp dword [esp + 0x24], 0
push 0
je 0x4089f9
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x14]
movsx ecx, word [esi + 0x12]
push edx
movsx edx, word [esi + 0x10]
push eax
movsx eax, word [esi + 0xe]
push ebp
push ecx
movsx ecx, word [esi + 0xc]
push edx
mov edx, dword [esi + 8]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 4]
push edx
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
movzx edx, word [ebx]
mov esi, eax
lea ebx, [ebx + edx + 2]
jmp 0x408a3f
movzx ecx, word [esi + 0x10]
mov eax, dword [esp + 0x20]
movsx edx, word [esi + 0xe]
push eax
movsx eax, word [esi + 0xc]
push ecx
movsx ecx, word [esi + 0xa]
push ebp
push edx
movsx edx, word [esi + 8]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push edi
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
movzx eax, word [ebx]
xor edx, edx
cmp dx, ax
jne 0x408a3a
add ebx, 2
jmp 0x408a3f
movzx eax, ax
add ebx, eax
cmp dword [esp + 0x18], 0
je 0x408a4f
push edi
call fcn.0046f324
add esp, 4
test esi, esi
je 0x408a71
mov eax, dword [esp + 0x28]
test eax, eax
je 0x408a6d
push 0x13
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x28], esi
lea esi, [ebx + 3]
and esi, 0xfffffffc
sub dword [esp + 0x2c], 1
jne 0x40884e
jmp 0x408a86
mov ebp, eax
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebp, ebp
je 0x408aa6
test edi, edi
je 0x408aa6
push 5
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0046f01c
add esp, 0x60
ret 0xc