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

Disassembly:
push 0xffffffffffffffff
push 0x575efa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ebx, 1
push esi
lea ecx, [esp + 0x70]
mov dword [esi + 0x154], ebx
call fcn.00557d8b
xor ebp, ebp
mov ecx, esi
mov dword [esp + 0x88], ebp
call fcn.0043e710
mov edx, dword [eax]
push esi
mov ecx, eax
call dword [edx + 0xec]
push eax
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x54]
call fcn.0043f920
lea ecx, [esp + 0x5c]
push ebp
push ecx
push ebp
push 0x30
mov byte [esp + 0x98], bl
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call dword [edx + 0x12c]
mov ecx, dword [eax]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x3c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x40], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x164]
cmp eax, ebp
mov dword [esp + 0x48], edx
je 0x497af8
mov ecx, esi
call fcn.0043e710
push ebp
push ebp
sub esp, 0x10
mov edi, eax
mov ecx, esp
mov dword [esp + 0x30], esp
mov ebx, dword [edi]
push ebp
call fcn.004459d0
lea eax, [esp + 0x84]
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, edi
call dword [ebx + 0xc0]
mov edx, dword [eax]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], edx
mov ebx, 1
mov eax, dword [eax + 4]
add ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x40], ecx
cmp dword [esi + 0xa0], ebx
jne 0x497b89
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x158]
lea ecx, [esp + 0x3c]
push ebp
push ecx
push 0x142
mov ecx, esi
call fcn.0043eba0
mov ecx, dword [esi + 0xa4]
push eax
lea edx, [esp + 0x7c]
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.00496120
mov edi, dword [eax]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov ebp, dword [esp + 0x20]
mov ebx, dword [eax + 4]
mov eax, edi
sub eax, ecx
mov ecx, edx
sub ecx, ebp
push edx
push eax
push ecx
mov ecx, dword [esp + 0x48]
lea edx, [esi + 0x168]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [esi + 0x178]
push eax
call dword [sym.imp.USER32.dll_SetRectEmpty]
mov dword [esi + 0x154], 0
mov esi, dword [esp + 0x90]
mov dword [esi], edi
jmp 0x497dfe
mov ecx, dword [esi + 0xa4]
push ebp
push ebx
push 0xffffffffffffffff
push 0xa
call fcn.00494820
cmp eax, ebp
je 0x497baa
mov edx, dword [eax]
mov ecx, eax
call dword [edx + pe_nt_image_headers32]
jmp 0x497bac
xor eax, eax
cmp eax, ebp
mov dword [esi + 0x188], eax
mov dword [esp + 0x28], ebp
je 0x497bd5
sub eax, 2
mov ecx, dword [esp + 0x48]
neg eax
sbb eax, eax
and eax, 3
add eax, 8
add ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x48], ecx
cmp dword [esp + 0x94], ebp
jne 0x497c27
mov ecx, esi
xor edi, edi
call fcn.0043d210
test eax, eax
jle 0x497c16
push edi
mov ecx, esi
call fcn.0043d220
cmp eax, ebp
je 0x497c0a
cmp dword [eax + 0xbc], esi
jne 0x497c0a
mov edx, dword [eax]
push ebp
mov ecx, eax
call dword [edx + 0xa0]
mov ecx, esi
inc edi
call fcn.0043d210
cmp edi, eax
jl 0x497beb
mov ecx, esi
call fcn.00498d60
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x158]
mov ecx, dword [esi + 0xa4]
push 0x23be
call fcn.00494800
mov edi, eax
mov eax, dword [esi + 0x158]
cmp eax, ebp
mov dword [esp + 0x14], ebp
je 0x497cfc
mov ecx, esi
call fcn.0043e710
mov edx, dword [eax]
push ebp
push ebp
push esi
push ebp
lea ecx, [esp + 0x7c]
push ebx
push ecx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call dword [edx + 0xb8]
mov edx, dword [eax]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov eax, dword [eax + 4]
add ecx, eax
cmp edi, ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], ecx
jne 0x497cef
push 0x130
call fcn.0054dd66
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
cmp edi, ebp
mov byte [esp + 0x88], 2
je 0x497ccb
mov ecx, edi
call fcn.00493450
mov dword [edi], 0x58c0c0
mov dword [edi + 0x1c], 0x58c064
mov dword [edi + 0xb8], ebx
mov dword [edi + 0x90], 0x5a
jmp 0x497ccd
xor edi, edi
mov ecx, dword [esi + 0xa4]
push ebx
push 0xffffffffffffffff
push 0x5d7050
push 0x23be
push edi
mov byte [esp + 0x9c], bl
call fcn.00494460
mov edi, eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x90]
jmp 0x497d0b
cmp edi, ebp
je 0x497d0b
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0x90]
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call fcn.0043eba0
mov ecx, dword [esp + 0x98]
push eax
lea edx, [esp + 0x74]
push ecx
mov ecx, dword [esi + 0xa4]
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004966a0
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esi + 0x158]
test eax, eax
mov dword [esp + 0x30], ebx
je 0x497d9a
mov edx, dword [edi]
push 0
mov ecx, edi
call dword [edx + 0x90]
mov ecx, dword [esp + 0x14]
mov eax, ebx
mov ebx, dword [esp + 0x48]
sub esp, 0x10
sub eax, ebx
mov ebx, esp
lea edx, [eax + ecx]
mov ecx, ebp
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x54]
sub ecx, edx
mov edx, dword [edi]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x4c]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
mov ecx, edi
call dword [edx + 0x78]
mov ebx, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov eax, ebp
sub eax, ecx
mov ecx, edx
sub ecx, edi
mov edi, dword [sym.imp.USER32.dll_SetRect]
push edx
mov edx, dword [esp + 0x40]
push eax
push ecx
lea eax, [esi + 0x168]
push edx
push eax
call edi
mov ecx, dword [esp + 0x48]
mov eax, ebx
sub eax, ecx
mov ecx, dword [esp + 0x28]
lea edx, [eax + ecx]
mov ecx, ebp
sub ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x40]
push ecx
push eax
lea eax, [esi + 0x178]
push edx
push eax
call edi
mov dword [esi + 0x154], 0
mov esi, dword [esp + 0x90]
mov dword [esi], ebp
lea ecx, [esp + 0x4c]
mov dword [esi + 4], ebx
mov byte [esp + 0x88], 0
call fcn.0043f980
lea ecx, [esp + 0x6c]
mov dword [esp + 0x88], 0xffffffff
call fcn.00557dfd
mov ecx, dword [esp + 0x80]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x7c
ret 0xc