Function at 0x50a990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x244
mov eax, dword [esp + 0x248]
mov ecx, dword [0x83dbbc]
push ebx
push ebp
push esi
push edi
and eax, 0xffff
push 5
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [0x83dbbc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x4c], ebp
je 0x50b0d0
movsx eax, word [ebp + 0xe]
mov ecx, dword [esp + 0x25c]
push 0
push 0
push 0
mov dword [ecx], eax
mov eax, dword [esp + 0x26c]
movsx edx, word [ebp + 0x10]
lea ecx, [ebp + 0x12]
mov dword [eax], edx
push ecx
call fcn.0050a920
push 0
push 0
push 0
push eax
call fcn.0050a920
mov edi, dword [esp + 0x284]
add esp, 0x20
mov ecx, edi
mov esi, eax
push 0x60
call fcn.005dd910
mov eax, dword [edi]
push 0
push 0x60
push eax
push esi
call fcn.0050a920
mov ebx, eax
mov eax, dword [edi]
push str.IDS_
push eax
call fcn.0078e73a
mov esi, eax
xor edx, edx
add esp, 0x18
cmp esi, edx
je 0x50ab5e
mov edx, dword [0x809d3c]
push esi
mov dword [esp + 0x1c], edx
call fcn.0078c685
add esp, 4
test eax, eax
jle 0x50aa72
inc eax
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.005dd7a0
push esi
lea ecx, [esp + 0x1c]
call fcn.00409430
mov eax, dword [0x809d38]
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.005dcfa0
mov ecx, dword [esp + 0x14]
mov dl, byte [0x83ec0c]
mov byte [ecx], dl
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.005dd6b0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50ab4a
mov esi, dword [str.TDBERR]
push 1
push eax
lea ecx, [esp + 0x24]
call fcn.004026a0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0078c6a2
add esp, 4
lea edx, [esp + 0x1c]
mov ecx, 0x85fcd0
push edx
call fcn.00433310
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
call fcn.005dd410
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x50ab02
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, dword [eax]
test esi, esi
je 0x50ab4a
push esi
call fcn.0078c685
add esp, 4
mov dword [esp + 0x20], eax
inc eax
mov ecx, edi
push eax
mov dword [esp + 0x2c], eax
call fcn.005dd910
mov eax, dword [edi]
mov ecx, dword [0x809d3c]
cmp eax, ecx
je 0x50ab33
mov ecx, dword [esp + 0x20]
mov dword [eax - 4], ecx
mov edx, dword [esp + 0x28]
mov edi, dword [edi]
lea ecx, [edx + edx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call fcn.005dd410
lea ecx, [esp + 0x18]
call fcn.005dd990
xor edx, edx
test byte [ebp], 0x40
je 0x50ab77
add ebx, 2
cmp word [ebx], dx
je 0x50ab74
add ebx, 2
cmp word [ebx], dx
jne 0x50ab6c
add ebx, 2
cmp word [ebp + 8], dx
mov dword [esp + 0x20], edx
jbe 0x50b0d0
jmp 0x50ab8d
mov ebx, dword [esp + 0x1c]
xor edx, edx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x56]
mov word [esp + 0x54], dx
rep stosd dword es:[edi], eax
lea ebp, [ebx + 3]
lea ecx, [esp + 0x10]
and ebp, 0xfffffffc
mov dword [esp + 0x10], edx
stosw word es:[edi], ax
push ecx
lea edx, [esp + 0x58]
push 0x100
lea eax, [ebp + 0x12]
push edx
push eax
call fcn.0050a920
add esp, 0x10
cmp word [esp + 0x10], 0
mov esi, eax
jne 0x50ad4e
lea ecx, [esp + 0x54]
push ecx
call fcn.0078f868
lea edx, [esp + 0x58]
push str.TRACKBAR
push edx
call fcn.0078e73a
add esp, 0xc
test eax, eax
je 0x50ac01
mov dword [esp + 0x10], 0x86
jmp 0x50ad4e
lea eax, [esp + 0x54]
push str.TABCONTROL
push eax
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50ac24
mov dword [esp + 0x10], 0x88
jmp 0x50ad4e
lea ecx, [esp + 0x54]
push str.LISTVIEW
push ecx
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50ac47
mov dword [esp + 0x10], 0x87
jmp 0x50ad4e
lea edx, [esp + 0x54]
push 0x7fd378
push edx
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50ac6a
mov dword [esp + 0x10], 0x89
jmp 0x50ad4e
lea eax, [esp + 0x54]
push str.VIEWER
push eax
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50ac8d
mov dword [esp + 0x10], 0x8a
jmp 0x50ad4e
lea ecx, [esp + 0x54]
push str.HOTKEY
push ecx
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50acb0
mov dword [esp + 0x10], 0x8b
jmp 0x50ad4e
lea edx, [esp + 0x54]
push str.SHORTCUTBAR
push edx
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50acd0
mov dword [esp + 0x10], 0x8c
jmp 0x50ad4e
lea eax, [esp + 0x54]
push str.MERCHANDISE
push eax
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50acf0
mov dword [esp + 0x10], 0x8d
jmp 0x50ad4e
lea ecx, [esp + 0x54]
push str.TREEVIEW
push ecx
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50ad10
mov dword [esp + 0x10], 0x8e
jmp 0x50ad4e
lea edx, [esp + 0x54]
push str.msctls_progress32
push edx
call fcn.0078c8ff
add esp, 8
test eax, eax
jne 0x50ad30
mov dword [esp + 0x10], 0x8f
jmp 0x50ad4e
lea eax, [esp + 0x54]
push str.HEALTHBAR
push eax
call fcn.0078e73a
add esp, 8
test eax, eax
je 0x50ad4e
mov dword [esp + 0x10], 0x90
push 0
lea ecx, [esp + 0x58]
push 0x100
push ecx
push esi
call fcn.0050a920
lea edx, [esp + 0x64]
push str.IDS_
push edx
mov dword [esp + 0x34], eax
call fcn.0078e73a
mov ebx, eax
xor edi, edi
add esp, 0x18
cmp ebx, edi
mov dword [esp + 0x50], ebx
je 0x50aef1
mov eax, dword [0x809d3c]
push ebx
mov dword [esp + 0x18], eax
call fcn.0078c685
add esp, 4
cmp eax, edi
jle 0x50ada8
inc eax
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.005dd7a0
push ebx
call fcn.0078c685
mov esi, eax
add esp, 4
lea ecx, [esp + 0x14]
lea edi, [esi + 1]
push edi
call fcn.005dd910
push esi
lea ecx, [esp + 0x18]
call fcn.00403c50
lea ecx, [edi + edi]
mov edi, dword [esp + 0x14]
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x809d38]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call fcn.005dcfa0
mov ecx, dword [esp + 0x18]
mov dl, byte [0x83ec0c]
mov byte [ecx], dl
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.005dd6b0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x50ae1d
xor esi, esi
jmp 0x50ae63
mov esi, dword [str.TDBERR]
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.004026a0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0078c6a2
add esp, 4
lea edx, [esp + 0x28]
mov ecx, 0x85fcd0
push edx
call fcn.00433310
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.005dd410
test edi, edi
je 0x50ae63
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
mov esi, dword [eax]
mov ecx, dword [0x809d3c]
test esi, esi
mov dword [esp + 0x24], ecx
je 0x50aec6
push esi
call fcn.0078c685
add esp, 4
test eax, eax
jle 0x50ae8b
inc eax
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.005dd7a0
push esi
call fcn.0078c685
mov edi, eax
add esp, 4
lea ecx, [esp + 0x24]
lea ebx, [edi + 1]
push ebx
call fcn.005dd910
push edi
lea ecx, [esp + 0x28]
call fcn.00403c50
mov edi, dword [esp + 0x24]
lea ecx, [ebx + ebx]
mov edx, ecx
mov ebx, dword [esp + 0x50]
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 [esp + 0x24]
push eax
push ebx
call fcn.0078eea5
add esp, 8
lea ecx, [esp + 0x24]
call fcn.005dd990
lea ecx, [esp + 0x18]
call fcn.005dd410
lea ecx, [esp + 0x14]
call fcn.005dd990
xor edi, edi
mov ecx, dword [0x809d3c]
push edi
mov dword [esp + 0x4c], ecx
push edi
lea ecx, [esp + 0x50]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x80
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.005dd7a0
mov edx, dword [esp + 0x48]
mov ax, word [0x83f43c]
xor ecx, ecx
mov word [edx], ax
mov cx, word [ebp + 0x10]
mov dword [esp + 0x2c], ecx
mov edx, dword [ebp]
mov dword [esp + 0x34], edx
movsx eax, word [ebp + 8]
mov dword [esp + 0x38], eax
movsx edx, word [ebp + 0xa]
mov dword [esp + 0x3c], edx
movsx eax, word [ebp + 0xc]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
movsx edx, word [ebp + 0xe]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x54]
and eax, 0xffff
test edx, edx
mov dword [esp + 0x30], eax
je 0x50afc4
lea eax, [esp + 0x54]
push eax
call fcn.0078c685
mov ebx, eax
add esp, 4
lea ecx, [esp + 0x48]
lea esi, [ebx + 1]
push esi
call fcn.005dd910
mov edi, dword [esp + 0x48]
mov eax, dword [0x809d3c]
cmp edi, eax
je 0x50afa9
mov dword [edi - 4], ebx
mov edi, dword [esp + 0x48]
lea ecx, [esi + esi]
lea esi, [esp + 0x54]
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 ecx, dword [esp + 0x2c]
xor edi, edi
mov esi, dword [esp + 0x268]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x10]
cmp eax, edx
jl 0x50b006
mov al, byte [esi + 0xd]
test al, al
jne 0x50afe4
cmp edx, edi
jne 0x50b08a
mov eax, dword [esi + 0x14]
cmp eax, edi
jle 0x50b08a
mov ebx, dword [esi]
add eax, edx
push edi
push eax
mov ecx, esi
call dword [ebx + 8]
test al, al
je 0x50b08a
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0x10]
lea edx, [eax + 1]
mov dword [esi + 0x10], edx
mov edx, dword [esi + 4]
shl eax, 5
add eax, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x10], edx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x14], ecx
mov edx, dword [esp + 0x44]
mov dword [eax + 0x18], edx
lea edi, [eax + 0x1c]
mov eax, dword [esp + 0x48]
test eax, eax
mov esi, eax
je 0x50b088
push eax
call fcn.0078c685
mov ebp, eax
add esp, 4
mov ecx, edi
lea ebx, [ebp + 1]
push ebx
call fcn.005dd910
mov eax, dword [edi]
mov ecx, dword [0x809d3c]
cmp eax, ecx
je 0x50b075
mov dword [eax - 4], ebp
mov edi, dword [edi]
lea ecx, [ebx + ebx]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
mov ecx, dword [esp + 0x1c]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
mov dword [esp + 0x1c], ecx
jbe 0x50b0ac
inc ecx
and eax, 0xffff
and ecx, 0xfffffffe
add ecx, eax
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x48]
call fcn.005dd990
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
xor ecx, ecx
inc eax
mov cx, word [edx + 8]
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x50ab87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x244
ret