Function at 0x490344
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x33c
mov ebp, dword [esp + 0x354]
mov esi, dword [esp + 0x350]
sub esp, 0xc
push esi
call fcn.00490198
add esp, 0x10
mov dword [esi + 0x194], 0
mov dword [esi + 0x198], 0
mov word [esi + 0x19c], 0
mov dword [esi + 0x1a0], 0
mov dword [esi + 0x1a4], 0
mov dword [esi + 0x1a8], 0
mov dword [esi + 0x1244], 0
test ebp, ebp
je 0x4907d0
cmp esi, dword [esp + 0x358]
je 0x490464
mov edi, dword [esp + 0x35c]
push dword [esp + 0x358]
push 0xac5d2b
push 0x7f
push esi
call fcn.0080a080
add esp, 0x10
mov eax, esi
sub eax, 0xffffff80
push edi
push str.wndclass__s
push 0xff
push eax
call fcn.0080a080
add esp, 0x10
lea eax, [esp + 0x23c]
push esi
push str.HDSDR___s_
push 0xff
push eax
call fcn.0080a080
add esp, 0x10
lea eax, [esp + 0x3c]
push esi
push str.control_HDSDR___s_
push 0xff
push eax
call fcn.0080a080
add esp, 0x10
lea ebx, [esp + 0x13c]
push esi
push str.HDSDR___s_
push 0xff
push ebx
call fcn.0080a080
add esp, 0x10
cmp ebp, 1
jne 0x490464
sub esp, 0xc
push esi
push edi
push str._s_client_to___s_
push 0xff
push ebx
call fcn.0080a080
add esp, 0x20
sub esp, 0xc
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
add esp, 0xc
mov dword [esi + 0x198], eax
test eax, eax
je 0x4904c5
cmp ebp, 2
je 0x49051e
cmp ebp, 1
jne 0x49059c
mov ebp, dword [esi + 0x1c0]
test ebp, ebp
jle 0x49052e
lea ebx, [esi + 0x244]
xor edi, edi
nop
sub esp, 8
push dword [esp + 0x360]
push ebx
call fcn.00807854
add esp, 0x10
test eax, eax
je 0x49052a
inc edi
sub ebx, 0xffffff80
cmp edi, ebp
jl 0x4904a4
jmp 0x49052e
call sub.KERNEL32.DLL_GetLastError
mov dword [esi + 0x1244], eax
lea edi, [esi + 0x1248]
sub esp, 4
push 0
push 0x400
push edi
push 0x400
push eax
push 0
push 0x1200
call sub.KERNEL32.DLL_FormatMessageA
add esp, 4
test eax, eax
jne 0x4907d0
push dword [esi + 0x1244]
push str.Windows_Error_Code__lu
push 0x3ff
push edi
call fcn.0080a080
add esp, 0x10
xor eax, eax
jmp 0x4907d2
mov dword [esi + 0x194], 0xffff
jmp 0x49059c
test edi, edi
jns 0x490589
mov dword [esi + 0x1c0], 0
sub esp, 8
push esi
push 0x48fcf8
call fcn.0081d454
add esp, 8
mov ebp, dword [esi + 0x1c0]
test ebp, ebp
jle 0x49059c
lea ebx, [esi + 0x244]
xor edi, edi
nop word [eax + eax]
sub esp, 8
push dword [esp + 0x360]
push ebx
call fcn.00807854
add esp, 0x10
test eax, eax
je 0x490585
inc edi
sub ebx, 0xffffff80
cmp edi, ebp
jl 0x490564
jmp 0x49059c
test edi, edi
js 0x49059c
xor eax, eax
cmp ebp, edi
jle 0x490596
mov eax, dword [esi + edi*4 + 0x1c4]
mov dword [esi + 0x194], eax
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp + 0x14], 0x48fda0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x198]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], 0
mov edi, esi
sub edi, 0xffffff80
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0
sub esp, 0xc
lea eax, [esp + 0x18]
push eax
call fcn.0081d6fa
add esp, 0xc
mov word [esi + 0x19c], ax
test ax, ax
je 0x4906ec
lea ebx, [esp + 0x13c]
push 0
push dword [esi + 0x198]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push ebx
push edi
push 0
call fcn.0081d31c
mov dword [esi + 0x1a0], eax
test eax, eax
je 0x490745
sub esp, 8
push ebx
push eax
call fcn.0081d7de
add esp, 8
mov edi, dword [esp + 0x354]
cmp edi, 2
jne 0x490683
test eax, eax
je 0x4907d0
sub esp, 0xc
lea eax, [esp + 0x248]
push eax
call fcn.0081d70c
add esp, 0xc
mov dword [esi + 0x1a4], eax
sub esp, 0xc
lea eax, [esp + 0x48]
push eax
call fcn.0081d70c
add esp, 0xc
mov dword [esi + 0x1a8], eax
test eax, eax
je 0x490797
mov ecx, dword [esi + 0x1a4]
test ecx, ecx
je 0x490797
cmp dword [0xb738f8], 0
je 0x4907dd
cmp dword [0xb738fc], 0
jne 0x4907d0
mov edx, 0xb738fc
jmp 0x4907e2
call sub.KERNEL32.DLL_GetLastError
mov dword [esi + 0x1244], eax
lea edi, [esi + 0x1248]
sub esp, 4
push 0
push 0x400
push edi
push 0x400
push eax
push 0
push 0x1200
call sub.KERNEL32.DLL_FormatMessageA
add esp, 4
test eax, eax
jne 0x4907d0
push dword [esi + 0x1244]
push str.Windows_Error_Code__lu
push 0x3ff
push edi
call fcn.0080a080
add esp, 0x10
xor eax, eax
jmp 0x4907d2
call sub.KERNEL32.DLL_GetLastError
mov dword [esi + 0x1244], eax
lea edi, [esi + 0x1248]
sub esp, 4
push 0
push 0x400
push edi
push 0x400
push eax
push 0
push 0x1200
call sub.KERNEL32.DLL_FormatMessageA
add esp, 4
test eax, eax
jne 0x4907d0
push dword [esi + 0x1244]
push str.Windows_Error_Code__lu
push 0x3ff
push edi
call fcn.0080a080
add esp, 0x10
xor eax, eax
jmp 0x4907d2
call sub.KERNEL32.DLL_GetLastError
mov dword [esi + 0x1244], eax
lea edi, [esi + 0x1248]
sub esp, 4
push 0
push 0x400
push edi
push 0x400
push eax
push 0
push 0x1200
call sub.KERNEL32.DLL_FormatMessageA
add esp, 4
test eax, eax
je 0x490866
xor eax, eax
add esp, 0x33c
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0xb738f8
cmp edi, 2
mov dword [edx], esi
mov dword [esi + 0x190], edi
mov edx, dword [esi + 0x194]
jne 0x490886
push 2
push 0xfffd
push ecx
push edx
call fcn.0081d6e2
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x4907d2
call sub.KERNEL32.DLL_GetLastError
mov dword [esi + 0x1244], eax
lea edi, [esi + 0x1248]
sub esp, 4
push 0
push 0x400
push edi
push 0x400
push eax
push 0
push 0x1200
call sub.KERNEL32.DLL_FormatMessageA
add esp, 4
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x4907d2
push dword [esi + 0x1244]
push str.Windows_Error_Code__lu
push 0x3ff
push edi
call fcn.0080a080
add esp, 0x10
jmp 0x4908fa
push dword [esi + 0x1244]
push str.Windows_Error_Code__lu
push 0x3ff
push edi
call fcn.0080a080
add esp, 0x10
xor eax, eax
jmp 0x4907d2
test edx, edx
je 0x4908fa
push 0
push 0xffff
push eax
push edx
call fcn.0081d6e2
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x4907d2
call sub.KERNEL32.DLL_GetLastError
mov dword [esi + 0x1244], eax
lea edi, [esi + 0x1248]
sub esp, 4
push 0
push 0x400
push edi
push 0x400
push eax
push 0
push 0x1200
call sub.KERNEL32.DLL_FormatMessageA
add esp, 4
mov ecx, eax
mov al, 1
test ecx, ecx
jne 0x4907d2
push dword [esi + 0x1244]
push str.Windows_Error_Code__lu
push 0x3ff
push edi
call fcn.0080a080
add esp, 0x10
mov al, 1
jmp 0x4907d2