Function at 0x491850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x496bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x4c5280]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c5280]
xor eax, esp
push eax
lea eax, [esp + 0x684]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x694]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0xa4]
push eax
push ecx
mov dword [esp + 0x24], 5
mov dword [esp + 0x2c], 0x16
call dword [sym.imp.USER32.dll_GetClientRect]
xor esi, esi
cmp dword [ebp + 0x2090], esi
je 0x4918d5
mov edx, dword [ebp + 0x2090]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp eax, esi
je 0x4918d5
mov dword [ebp + 0x2090], esi
mov ecx, dword [ebp + 0x27ac]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
push esi
push eax
mov eax, dword [0x4c9830]
push eax
call dword [sym.imp.SHELL32.dll_ExtractIconW]
mov dword [ebp + 0x2090], eax
mov ecx, dword [ebp + 0x27ac]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x18], 0x28
call eax
push eax
lea edi, [esp + 0x558]
call fcn.004108a0
lea ecx, [ebp + 0x2c]
push ecx
lea edx, [ebp + 0x38]
mov dword [esp + 0x690], esi
push edx
lea ecx, [esp + 0x20]
mov ebx, edi
mov dword [esp + 0x28], 0xf0
call fcn.00490fc0
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0x27ac]
add eax, 2
mov dword [esp + 0x20], eax
add eax, 0x50
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 8]
add esp, 8
call edx
push eax
lea edi, [esp + 0x430]
call fcn.004108a0
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x3c]
push eax
lea ecx, [esp + 0x20]
mov ebx, edi
call fcn.00490fc0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xb4]
add ecx, 4
mov dword [esp + 0x20], ecx
add edx, 0xffffff9a
add esp, 8
lea ecx, [esp + 0xb4]
mov dword [esp + 0x20], edx
call fcn.00410770
lea eax, [esp + 0xb4]
push eax
push ebp
mov byte [esp + 0x694], 2
call fcn.00491160
test al, al
jne 0x491a23
mov ebx, 0x4b6888
xor ecx, ecx
cmp ecx, ebx
jne 0x4919ce
mov ebx, 0x4b75b8
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4919d3
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
mov ecx, edi
lea esi, [esp + 0xbc]
mov dword [esp + 0xb8], eax
call fcn.00411640
cmp byte [esp + 0x1d0], 0
lea eax, [esp + 0xc0]
jne 0x491a12
mov eax, dword [esp + 0xbc]
lea edx, [edi + edi]
push edx
add eax, 4
push ebx
push eax
call fcn.004797f0
add esp, 0xc
cmp byte [esp + 0x1d0], 0
lea eax, [esp + 0xc0]
jne 0x491a3b
mov eax, dword [esp + 0xbc]
add eax, 4
push eax
mov eax, dword [ebp + 0x48]
lea esi, [ebp + 0x48]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov ecx, dword [esi]
push eax
push 0xfffffffffffffff4
push ecx
call dword [sym.imp.USER32.dll_SetClassLongW]
lea eax, [ebp + 0x44]
neg eax
sbb eax, eax
and eax, esi
cmp byte [esp + 0x1d0], 0
lea ecx, [esp + 0xc0]
jne 0x491a86
mov ecx, dword [esp + 0xbc]
add ecx, 4
push ecx
lea ecx, [ebp + 0x24]
push ecx
push eax
lea esi, [esp + 0x24]
call fcn.004055b0
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x27ac]
mov edx, dword [ecx]
lea esi, [eax + 2]
add eax, 0x11
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x14]
add esp, 0xc
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x118
call eax
push eax
lea edi, [esp + 0x308]
call fcn.004108a0
lea edi, [ebp + 0x24]
lea ecx, [ebp + 0x40]
push edi
push ecx
lea ecx, [esp + 0x30]
lea ebx, [esp + 0x30c]
call fcn.00490fc0
mov eax, dword [esp + 0x38]
lea edx, [eax + 0xa]
add eax, 0x28
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
lea ecx, [ebp + 0x1068]
add esp, 8
xor ebx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x491b28
lea eax, [ebp + 0x106c]
jmp 0x491b2a
xor eax, eax
push 0x4b6890
push edi
push eax
lea esi, [esp + 0x34]
call fcn.004055b0
mov eax, dword [ebp + 0x25c8]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
add esp, 0xc
lea edx, [esp + 0x84]
push edx
push eax
call esi
mov edx, dword [ebp + 4]
lea ecx, [esp + 0x94]
push ecx
push edx
call esi
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x94]
neg eax
push eax
neg ecx
push ecx
lea edx, [esp + 0x8c]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x208c]
push 0x11
push ebx
push ebx
push ecx
add eax, 0xffffffe2
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, fcn.00475690
mov esi, fcn.00475125
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], 0xa
mov dword [esp + 0x78], fcn.00475202
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], esi
mov byte [esp + 0x68c], 4
mov ecx, dword [ebp + 0x27ac]
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
lea edx, [esp + 0x60]
push edx
call eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xa
mov dword [esp + 0x54], fcn.00475202
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x690], 5
call fcn.00405b00
add esp, 4
push 0x4b6898
lea edi, [esp + 0x1e0]
call fcn.004108a0
mov byte [esp + 0x68c], 6
cmp dword [esp + 0x44], ebx
je 0x491ca9
mov esi, dword [esp + 0x3c]
cmp esi, ebx
je 0x491cc2
lea eax, [esi + 0x14]
cmp byte [esi + 0x124], bl
jne 0x491c73
mov eax, dword [esi + 0x10]
add eax, 4
push eax
push 0x4b8ff4
lea edx, [esp + 0x1e4]
call fcn.00410f90
push 0x4b68ac
push 0x4b8ff4
lea edx, [esp + 0x1ec]
call fcn.00410f90
mov esi, dword [esi]
add esp, 0x10
cmp esi, ebx
jne 0x491c65
jmp 0x491cc2
push 0x4b68b4
push 0x4b8ff4
lea edx, [esp + 0x1e4]
call fcn.00410f90
add esp, 8
test byte [ebp + 0x27b0], 8
je 0x491ce8
mov edx, dword [ebp + 0x2330]
push 0x4b68b8
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp + 0x2098]
push 1
push eax
jmp 0x491d02
mov ecx, dword [ebp + 0x2330]
push str._T_u
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp + 0x2098]
push ebx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebp + 0x27b0]
push eax
lea ebx, [ebp + 0x25c4]
call fcn.00492ff0
cmp byte [esp + 0x2f8], 0
mov esi, vtable.t_str.0
mov dword [esp + 0x1dc], esi
jne 0x491d4b
mov eax, dword [esp + 0x1e4]
lea ecx, [esp + 0x1e8]
cmp eax, ecx
je 0x491d4b
push eax
call fcn.00475125
add esp, 4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68c], 4
call fcn.00406c30
lea ecx, [esp + 0x60]
mov byte [esp + 0x68c], 3
call fcn.00406c30
cmp byte [esp + 0x420], 0
mov dword [esp + 0x304], esi
jne 0x491d99
mov eax, dword [esp + 0x30c]
lea edx, [esp + 0x310]
cmp eax, edx
je 0x491d99
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x1d0], 0
mov dword [esp + 0xb4], esi
jne 0x491dc5
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x491dc5
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x548], 0
mov dword [esp + 0x42c], esi
jne 0x491df1
mov eax, dword [esp + 0x434]
lea edx, [esp + 0x438]
cmp eax, edx
je 0x491df1
push eax
call fcn.00475125
add esp, 4
cmp byte [esp + 0x670], 0
mov dword [esp + 0x554], esi
jne 0x491e1d
mov eax, dword [esp + 0x55c]
lea ecx, [esp + 0x560]
cmp eax, ecx
je 0x491e1d
push eax
call fcn.00475125
add esp, 4
mov ecx, dword [esp + 0x684]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00474db0
add esp, 0x67c
ret 4