Function at 0x438315
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48f6a1
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4b9e20]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4b9e20]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
movzx edi, word [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push pe_nt_image_headers32
push edi
push dword [0x4be88c]
mov dword [esp + 0x3c], ecx
call esi
and dword [esp + 0x2c], 0
and dword [esp + 0x10], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x438394
push eax
push dword [0x4be88c]
call ebx
test eax, eax
je 0x438394
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x2c], eax
push 5
push edi
push dword [0x4be88c]
call esi
test eax, eax
je 0x4386e0
push eax
push dword [0x4be88c]
call ebx
test eax, eax
je 0x4386d7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4386d7
movzx esi, word [eax + 2]
mov ecx, 0xffff
xor ebx, ebx
mov edx, ecx
cmp si, dx
sete bl
lea edx, [eax + 0x10]
mov dword [esp + 0x1c], ebx
cmp si, cx
je 0x4383e9
lea edx, [eax + 8]
movzx esi, word [edx]
mov ecx, eax
mov dword [esp + 0x34], esi
call fcn.00404c20
mov ebx, eax
mov eax, dword [esp + 0x30]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindow]
and dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
xor eax, eax
cmp ax, si
jae 0x4386e0
cmp dword [esp + 0x1c], 0
je 0x438428
mov edi, dword [ebx + 0x14]
jmp 0x43842c
movzx edi, word [ebx + 0x10]
xor ecx, ecx
lea eax, [ebx + 0x18]
cmp dword [esp + 0x1c], ecx
jne 0x43843a
lea eax, [ebx + 0x12]
cmp word [eax], 0x7b
jne 0x43865d
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
cmp eax, ecx
je 0x43846f
movzx edx, word [eax]
mov ecx, dword [eax + 4]
add eax, 2
movzx esi, word [eax]
mov dword [esp + 0x28], eax
add eax, 6
cmp edx, edi
je 0x438510
add eax, ecx
jne 0x438450
xor esi, esi
and dword [esp + 0x18], 0
and dword [esp + 0x58], 0
test esi, esi
je 0x4384c5
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4386ae
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x438698
push esi
push dword [esp + 0x18]
push esi
push eax
call fcn.00401b94
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [esp + 0x18]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x18]
push eax
call fcn.00404e52
pop ecx
mov dword [esp + 0x10], eax
test eax, eax
js 0x43863e
and dword [esp + 0x10], 0
call fcn.004080be
mov esi, dword [esp + 0x1c]
lea eax, [ebx + 0x18]
test esi, esi
jne 0x438502
lea eax, [ebx + 0x12]
mov dword [esp + 0x28], eax
test esi, esi
je 0x43852e
movzx eax, word [ebx + 0xc]
jmp 0x438532
mov eax, 0x378
cmp si, ax
je 0x43846f
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
lea esi, [ecx + 6]
jmp 0x438471
movzx eax, word [ebx + 8]
movsx edx, ax
mov dword [esp + 0x38], edx
test esi, esi
je 0x438543
movzx eax, word [ebx + 0xe]
jmp 0x438547
movzx eax, word [ebx + 0xa]
movsx ecx, ax
mov dword [esp + 0x3c], ecx
test esi, esi
je 0x438558
movzx eax, word [ebx + 0x10]
jmp 0x43855c
movzx eax, word [ebx + 0xc]
cwde
add eax, edx
mov dword [esp + 0x40], eax
test esi, esi
je 0x43856d
movzx eax, word [ebx + 0x12]
jmp 0x438571
movzx eax, word [ebx + 0xe]
mov edi, dword [esp + 0x30]
cwde
add eax, ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_MapDialogRect]
test esi, esi
je 0x438593
mov esi, dword [ebx + 0x14]
jmp 0x438597
movzx esi, word [ebx + 0x10]
cmp dword [esp + 0x1c], 0
je 0x4385a3
mov edx, dword [ebx + 4]
jmp 0x4385a5
xor edx, edx
cmp dword [esp + 0x1c], 0
je 0x4385b1
mov eax, dword [ebx + 8]
jmp 0x4385b3
mov eax, dword [ebx]
mov ecx, dword [edi + 4]
push esi
push edx
or eax, 0x10000
push eax
xor edi, edi
push edi
lea eax, [esp + 0x48]
push eax
push ecx
push str.AtlAxWinLic100
lea eax, [esp + 0x2c]
push eax
call fcn.004130c6
mov esi, dword [esp + 0x10]
cmp esi, edi
je 0x438635
cmp dword [esp + 0x1c], edi
je 0x4385f2
mov eax, dword [ebx]
cmp eax, edi
je 0x4385f2
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowContextHelpId]
push dword [esp + 0x14]
lea ecx, [esp + 0x14]
push dword [esp + 0x1c]
push dword [esp + 0x30]
call fcn.0043ad67
mov dword [esp + 0x10], eax
cmp eax, edi
jl 0x4386b8
cmp word [esp + 0x20], di
jne 0x43861e
mov dword [esp + 0x24], edi
push 0x13
push edi
push edi
push edi
push edi
push dword [esp + 0x38]
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x24], esi
jmp 0x43863e
call fcn.00401bdc
mov dword [esp + 0x10], eax
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x438674
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x438674
cmp word [esp + 0x20], cx
je 0x438674
push 2
push dword [esp + 0x28]
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
mov eax, ebx
call fcn.00404c9f
inc dword [esp + 0x24]
mov ebx, eax
mov ax, word [esp + 0x24]
pop ecx
cmp ax, word [esp + 0x34]
jb 0x43841c
jmp 0x4386e0
call fcn.00401bdc
mov dword [esp + 0x10], eax
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
jmp 0x4386cd
mov dword [esp + 0x10], 0x8007000e
jmp 0x4386a1
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x4386e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4386e0
call fcn.00401bdc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
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.0046d5b3
mov esp, ebp
pop ebp
ret 4