Function at 0x423760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x4606bc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.WM_ATLGETHOST
call esi
push str.WM_ATLGETCONTROL
mov dword [0x460660], eax
call esi
lea ecx, [ebp - 0x64]
mov dword [0x46065c], eax
mov eax, dword [0x46068c]
push ecx
mov esi, 0x30
push str.AtlAxWin
push eax
mov dword [ebp - 0x64], esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x423801
mov edx, dword [0x46068c]
mov dword [ebp - 0x64], esi
xor esi, esi
push 0x7f00
push esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0x423d70
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x44], 6
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], str.AtlAxWin
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0x4606bc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 5
push edi
push esi
call ebx
push pe_nt_image_headers32
push edi
push esi
mov dword [ebp - 0x20], eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x30], edi
cmp edi, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x423855
push edi
push esi
call ebx
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x423b34
push eax
push esi
call ebx
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, str.AtlAxWin
mov ebx, eax
test ecx, ecx
mov dword [ebp - 0x18], ebx
jne 0x423881
mov dword [ebp - 8], ecx
jmp 0x4238af
push str.AtlAxWin
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
lea eax, [edi + edi]
add eax, 3
and al, 0xfc
call fcn.00445710
mov eax, esp
push 0
push edi
push str.AtlAxWin
push eax
call fcn.00423b60
mov dword [ebp - 8], eax
push ebx
call fcn.00423bb0
mov cx, word [ebx + 2]
mov edi, eax
add esp, 4
sub edi, ebx
xor edx, edx
cmp cx, 0xffff
sete dl
mov esi, edx
cmp cx, 0xffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], esi
lea edx, [ebx + 0x10]
je 0x4238e2
lea edx, [ebx + 8]
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov cx, word [edx]
mov ebx, eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
jle 0x423982
mov dword [ebp + 0xc], ecx
push esi
push ebx
call fcn.00423c60
add esp, 8
mov dword [ebp - 0x10], eax
test esi, esi
lea ecx, [ebx + 0x18]
jne 0x423915
lea ecx, [ebx + 0x12]
cmp word [ecx], 0x7b
jne 0x42396a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, 6
add ecx, 0x12
add ecx, edi
test esi, esi
lea edi, [ecx + eax*2 + 0x52]
je 0x423947
mov eax, dword [ebx + 0x14]
jmp 0x42394d
xor eax, eax
mov ax, word [ebx + 0x10]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x34]
push edx
push ecx
push eax
call fcn.00423ce0
lea edi, [eax + edi + 3]
mov eax, dword [ebp - 0x10]
add esp, 0xc
and edi, 0xfffffffc
jmp 0x423970
mov edx, eax
sub edx, ebx
add edi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0xc], eax
jne 0x4238fe
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x42398a
mov esi, dword [ebp - 0x18]
jmp 0x423af8
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x18]
mov ebx, eax
mov edx, ecx
mov edi, ebx
add ebx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [ebp - 0x14], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [eax + 2], 0xffff
jne 0x4239bd
add eax, 0x10
jmp 0x4239c0
add eax, 8
mov esi, dword [ebp - 0x20]
mov word [eax], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x20], eax
jmp 0x4239d6
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
push edi
push esi
call fcn.00423c60
add esp, 8
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4239f2
lea ecx, [esi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x4239f8
lea edx, [esi + 0x12]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
cmp word [ecx], 0x7b
jne 0x423abd
mov eax, edi
mov edi, ebx
neg eax
sbb eax, eax
and eax, 6
add eax, 0x12
mov ecx, eax
add ebx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov edi, ebx
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0xc]
mov ecx, 0x13
mov edi, ebx
add ebx, 0x4e
rep movsd dword es:[edi], dword [esi]
test eax, eax
movsw word es:[edi], word [esi]
je 0x423a67
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
jmp 0x423a70
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ecx + 0x10]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x28]
push edx
push ecx
push eax
call fcn.00423ce0
mov ecx, eax
mov word [ebx], ax
mov esi, dword [ebp - 0x28]
add ebx, 2
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add ebx, eax
mov ecx, edx
mov eax, ebx
add esp, 0xc
not eax
and ecx, 3
inc eax
and eax, 3
add ebx, eax
mov eax, dword [ebp - 0x14]
rep movsb byte es:[edi], byte [esi]
cmp word [eax + 2], 0xffff
jne 0x423ab8
add eax, 0x10
jmp 0x423adf
add eax, 8
jmp 0x423adf
sub eax, esi
mov edi, ebx
mov ecx, eax
add ebx, eax
mov edx, ecx
mov eax, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00423b90
add esp, 4
inc word [eax]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
dec eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x20], eax
jne 0x4239d3
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push esi
push edx
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
cmp esi, eax
je 0x423b27
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
test eax, eax
je 0x423b49
test edi, edi
je 0x423b49
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14