Function at 0x435ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44be70
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x30]
cmp eax, ebp
jle 0x435bdb
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov eax, dword [ebx + 0x14]
push esi
cmp eax, ebp
push edi
je 0x435e89
cmp dword [ebx + 0x1c], ebp
jne 0x435c73
lea ecx, [esp + 0x24]
call fcn.0043f338
mov edi, dword [ebx + 0x14]
mov ecx, ebx
mov dword [esp + 0x5c], ebp
call fcn.00435b60
mov esi, eax
cmp esi, ebp
je 0x435c38
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CPtrArray::SetSize
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x24]
push ecx
push 0x4364c0
push edi
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
cmp dword [esp + 0x2c], ebp
je 0x435e93
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
test eax, 0xffff0000
mov dword [ebx + 0x1c], eax
je 0x435c62
lea esi, [ebx + 0x20]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CString::operator
mov esi, dword [esi]
mov dword [ebx + 0x1c], esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42u.DLL_CPtrArray::CPtrArray
cmp word [ebx + 0x24], 0xffff
jne 0x435d4d
lea ecx, [esp + 0x24]
call fcn.0043f326
mov edi, dword [ebx + 0x1c]
mov ebp, dword [ebx + 0x14]
mov ecx, ebx
mov dword [esp + 0x5c], 1
call fcn.00435b60
mov esi, eax
test esi, esi
je 0x435cc3
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x2c]
call sub.MFC42u.DLL_CWordArray::SetSize
lea eax, [esp + 0x24]
push eax
push 0x436560
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x435ea6
mov edi, dword [esp + 0x28]
jle 0x435d2d
mov edx, edi
mov esi, eax
mov cx, word [edx]
mov eax, ecx
and eax, 0x3ff
cmp ax, 9
jne 0x435d01
mov ax, word [ebx + 0x24]
mov ebp, eax
and ebp, 0x3ff
cmp ebp, 9
jne 0x435d23
cmp ax, cx
jae 0x435d27
jmp 0x435d23
cmp ax, 4
jne 0x435d27
mov ax, word [ebx + 0x24]
mov ebp, eax
and ebp, 0x3ff
cmp ebp, 9
je 0x435d27
cmp ax, 0xffff
je 0x435d23
cmp ax, cx
jae 0x435d27
mov word [ebx + 0x24], cx
add edx, 2
dec esi
jne 0x435cd9
cmp word [ebx + 0x24], 0xffff
jne 0x435d3c
mov cx, word [edi]
mov word [ebx + 0x24], cx
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42u.DLL_CWordArray::CWordArray
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x435d82
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x435d67
mov dword [ebx + 4], 0x57
jmp 0x435d82
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebx + 0xc], eax
jne 0x435d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0xc]
test esi, esi
mov dword [esp + 0x18], esi
je 0x435eb7
mov dx, word [ebx + 0x24]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebp, eax
test ebp, ebp
je 0x435eb7
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
je 0x435eb7
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x435eb7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x435eb7
mov dword [esp + 0x10], 0
push 0xffffffffffffffff
push edi
lea ecx, [ebx + 0x28]
call sub.MFC42u.DLL_CByteArray::SetSize
mov eax, dword [ebx + 0x2c]
push edi
push ebp
push eax
call fcn.00435ee0
add esp, 0xc
test eax, eax
jne 0x435e80
cmp dword [esp + 0x10], 1
je 0x435eb7
lea edx, [esp + 0x38]
and esi, 0xfffffffe
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x3c]
push 0x1c
mov dword [esp + 0x3c], 0
push edx
rep stosd dword es:[edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435eb7
cmp ebp, esi
jb 0x435eb7
mov eax, dword [esp + 0x44]
lea ecx, [eax + esi]
cmp ebp, ecx
ja 0x435eb7
mov edx, dword [esp + 0x14]
add edx, ebp
cmp edx, ecx
jb 0x435eb7
sub eax, ebp
add eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jge 0x435eb7
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
jmp 0x435df2
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x10], eax
jmp 0x435ec0
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x435eb7
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42u.DLL_CPtrArray::CPtrArray
jmp 0x435eb7
lea ecx, [esp + 0x24]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42u.DLL_CWordArray::CWordArray
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 4], eax
mov ecx, dword [ebx + 0x30]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
setg al
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret