Function at 0x407610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x26c
push ebx
push ebp
push esi
push edi
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x40765b
mov ecx, dword [esp + 0x284]
mov edx, dword [0x5b5574]
push 0x80
push ecx
push 0x4e76
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret
mov eax, dword [0x5b550c]
mov ecx, dword [0x5b5528]
push 0
push eax
push 0
push ecx
push 0x64
push 0xc8
push 0
push 0
push 0x40000040
push 0
push str.LISTBOX
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
push edi
push 0x407560
push 0xe
push ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
test eax, eax
jne 0x4076dd
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x284]
mov eax, dword [0x5b5574]
push 0x80
push edx
push 0x4e76
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret
push 0
push 0
push 0x18b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x407a28
cmp eax, 0xffffffff
je 0x407a28
mov ecx, dword [esp + 0x284]
mov edx, dword [0x5b5574]
push 0x80
push ecx
push 0x4e77
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x1c]
xor ebp, ebp
xor esi, esi
test eax, eax
jle 0x407a0d
lea eax, [esp + 0x34]
push eax
push esi
push 0x189
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [esp + 0x34]
push 0xe
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4077cc
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4077cc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4077cc
xor edx, edx
mov dx, word [eax + 4]
mov eax, dword [esp + 0x1c]
add ebp, edx
inc esi
cmp esi, eax
jl 0x407731
test ebp, ebp
mov dword [esp + 0x10], ebp
jle 0x407a0d
cmp ebp, 0xfa00
jg 0x407a0d
lea eax, [ebp + ebp*8]
lea ecx, [eax*4 + 0x10]
push ecx
call fcn.004d5aaa
mov ebp, eax
xor esi, esi
add esp, 4
cmp ebp, esi
mov dword [esp + 0x18], ebp
jne 0x4077d5
mov edx, dword [esp + 0x284]
push 0x80
push edx
push 0x50a
jmp 0x407a3a
mov dword [esp + 0x10], ebp
jmp 0x407a46
mov ecx, dword [esp + 0x10]
mov dword [ebp + 8], esi
mov dword [ebp], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
lea edx, [esp + 0x34]
push edx
push esi
push 0x189
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x34]
push 0xe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x407962
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407962
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [esp + 0x30], eax
je 0x407962
cmp word [eax + 4], 0
mov dword [esp + 0x28], 0
jbe 0x407936
mov ecx, dword [esp + 0x10]
add eax, 0x12
mov dword [esp + 0x20], eax
lea ecx, [ecx + ecx*8]
lea ebp, [ebp + ecx*4 + 0x20]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407986
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407989
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [ebp], eax
jle 0x4079e1
cmp eax, 0x17d78400
ja 0x4079e1
add eax, 0x400
push eax
call fcn.004d5aaa
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4078e0
mov eax, dword [ebp]
push edi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebp - 4]
mov esi, eax
mov eax, dword [esp + 0x2c]
mov ecx, 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 eax, dword [ebp]
lea ecx, [ebp - 0x10]
push eax
push ecx
call fcn.004070a0
add esp, 8
test eax, eax
je 0x4079b5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
add edx, 0xe
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], edx
xor edx, edx
mov dx, word [ecx + 4]
add ebp, 0x24
inc eax
cmp eax, edx
mov dword [esp + 0x28], eax
jl 0x407857
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x4077e7
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebp
call fcn.004d59c1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret
push edi
jmp 0x4079e6
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004d59c1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x18]
push eax
call fcn.004d59c1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esp + 0x18]
push edx
call fcn.004d59c1
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret
mov eax, dword [esp + 0x284]
mov ecx, dword [0x5b5574]
push 0x80
push eax
push 0x50a
push ecx
jmp 0x407a40
mov edx, dword [esp + 0x284]
push 0x80
push edx
push 0x4e76
mov eax, dword [0x5b5574]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x26c
ret