Function at 0x403630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
push 0x416d04
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 [0x416cc4], eax
call esi
lea ecx, [ebp - 0x64]
mov dword [0x416cc0], eax
mov eax, dword [0x416cd4]
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 0x4036d1
mov edx, dword [0x416cd4]
mov dword [ebp - 0x64], esi
xor esi, esi
push 0x7f00
push esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], 0x403c40
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 0x416d04
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 0xf0
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 0x403725
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 0x403a04
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 0x403751
mov dword [ebp - 8], ecx
jmp 0x40377f
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.00412290
mov eax, esp
push 0
push edi
push str.AtlAxWin
push eax
call fcn.00403a30
mov dword [ebp - 8], eax
push ebx
call fcn.00403a80
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 0x4037b2
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 0x403852
mov dword [ebp + 0xc], ecx
push esi
push ebx
call fcn.00403b30
add esp, 8
mov dword [ebp - 0x10], eax
test esi, esi
lea ecx, [ebx + 0x18]
jne 0x4037e5
lea ecx, [ebx + 0x12]
cmp word [ecx], 0x7b
jne 0x40383a
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 0x403817
mov eax, dword [ebx + 0x14]
jmp 0x40381d
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.00403bb0
lea edi, [eax + edi + 3]
mov eax, dword [ebp - 0x10]
add esp, 0xc
and edi, 0xfffffffc
jmp 0x403840
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 0x4037ce
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x40385a
mov esi, dword [ebp - 0x18]
jmp 0x4039c8
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 0x40388d
add eax, 0x10
jmp 0x403890
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 0x4038a6
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
push edi
push esi
call fcn.00403b30
add esp, 8
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4038c2
lea ecx, [esi + 0x18]
mov dword [ebp - 0xc], ecx
jmp 0x4038c8
lea edx, [esi + 0x12]
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp - 0xc]
cmp word [ecx], 0x7b
jne 0x40398d
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 0x403937
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x14]
jmp 0x403940
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.00403bb0
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 0x403988
add eax, 0x10
jmp 0x4039af
add eax, 8
jmp 0x4039af
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.00403a60
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 0x4038a3
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 0x4039f7
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 0x403a19
test edi, edi
je 0x403a19
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