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

Disassembly:
push 0xffffffffffffffff
push 0x5d0890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
mov ebx, ecx
xor esi, esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], 0x5e3de0
mov eax, dword [0x627490]
mov edi, dword [esp + 0x78]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x30], esi
call fcn.004a2d00
add esp, 0xc
test eax, eax
je 0x49a404
mov edx, dword [edi]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call dword [edx + 0x30]
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], 0x5eaf38
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x70], 1
cmp eax, 0xffffffff
jne 0x49a4a0
xor ebp, ebp
xor ecx, ecx
mov eax, dword [ebx + 0xa7c]
mov dword [esp + 0x10], ecx
cmp eax, esi
je 0x49a44a
mov eax, dword [ebx + 0xa78]
mov eax, dword [eax + 8]
jmp 0x49a44c
xor eax, eax
cmp ecx, eax
jge 0x49a4de
mov eax, dword [ebx + 0xa7c]
xor edi, edi
cmp eax, esi
jle 0x49a49d
mov edx, dword [ebx + 0xa78]
mov eax, dword [esi + edx + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x49a48d
mov eax, dword [eax + 0x14]
cmp eax, ebp
je 0x49a48d
mov ecx, dword [esp + 0x48]
mov ebp, eax
push ebp
push ecx
lea ecx, [esp + 0x48]
call fcn.0040c9d0
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa7c]
inc edi
add esi, 0x14
cmp edi, eax
jl 0x49a460
xor esi, esi
inc ecx
jmp 0x49a431
push eax
lea ecx, [ebx + 0x190]
call fcn.004f8150
mov ebp, eax
xor edi, edi
mov ecx, ebp
call fcn.004f4940
test eax, eax
jle 0x49a4de
push edi
mov ecx, ebp
call fcn.004f4950
mov edx, dword [esp + 0x48]
push eax
push edx
lea ecx, [esp + 0x48]
call fcn.0040c9d0
mov ecx, ebp
inc edi
call fcn.004f4940
cmp edi, eax
jl 0x49a4bb
mov eax, dword [esp + 0x88]
mov ebp, dword [esp + 0x80]
sub eax, ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], eax
mov eax, dword [0x627480]
cmp eax, esi
jne 0x49a8af
mov eax, dword [esp + 0x90]
cmp eax, esi
lea esi, [ebx + 0xe04]
push esi
je 0x49a85c
call dword [sym.imp.user32.dll_SetRectEmpty]
mov ebp, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
sub ebp, eax
mov eax, dword [esp + 0x78]
push 1
xor edi, edi
push ebp
push edi
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x34], ebp
call fcn.004977a0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x34], eax
mov eax, 0x66666667
sub ecx, edx
imul ebp
sar edx, 3
mov eax, edx
mov dword [esp + 0x30], ecx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x54], 0x5ec088
add edx, ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov ecx, dword [esp + 0x48]
mov byte [esp + 0x70], 2
test ecx, ecx
jle 0x49a677
push esi
call dword [sym.imp.user32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x8c]
push 1
push 0
mov edx, dword [ecx + edi*4]
mov ecx, dword [esp + 0x80]
push 0
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0049b150
mov ebx, dword [esi + 8]
mov eax, dword [esi]
mov ebp, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub ebx, eax
mov eax, dword [esp + 0x5c]
sub ebp, ecx
mov dword [esp + 0x1c], eax
inc eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
call fcn.0049f550
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
push esi
mov dword [edx + eax*8], ebx
mov ecx, dword [esp + 0x5c]
mov dword [ecx + eax*8 + 4], ebp
call dword [sym.imp.user32.dll_SetRectEmpty]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x8c]
push 2
push 0
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x80]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.0049b150
mov ebx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [esp + 0x5c]
sub ebx, ebp
mov ebp, dword [esi + 8]
sub ebp, edx
mov dword [esp + 0x1c], eax
inc eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
call fcn.0049f550
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x1c]
inc edi
mov dword [ecx + eax*8], ebp
mov edx, dword [esp + 0x58]
mov dword [edx + eax*8 + 4], ebx
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x14]
cmp edi, ecx
jl 0x49a59a
mov ebp, dword [esp + 0x20]
mov edx, ecx
mov eax, 0x51eb851f
imul edx, ebp
shl edx, 3
imul edx
sar edx, 5
mov edi, dword [esp + 0x7c]
mov eax, edx
shr eax, 0x1f
mov ebp, 1
add edx, eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], 0
shl ebp, cl
sub eax, edx
sub eax, edi
mov dword [esp + 0x28], eax
dec ebp
js 0x49a732
xor esi, esi
xor edx, edx
test ecx, ecx
mov dword [esp + 0x14], 1
jle 0x49a70d
mov eax, dword [esp + 0x58]
mov dword [esp + 0x18], ecx
add eax, 0xc
test dword [esp + 0x14], ebp
je 0x49a6e3
mov edi, dword [eax - 4]
add esi, edi
mov edi, dword [eax]
cmp edx, edi
jg 0x49a6f1
jmp 0x49a6ef
mov edi, dword [eax - 0xc]
add esi, edi
mov edi, dword [eax - 8]
cmp edx, edi
jg 0x49a6f1
mov edx, edi
mov edi, dword [esp + 0x14]
add eax, 0x10
shl edi, 1
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
dec edi
mov dword [esp + 0x18], edi
jne 0x49a6d0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add esi, edi
mov edi, dword [esp + 0x34]
cmp edx, edi
jg 0x49a71d
mov edx, edi
cmp esi, eax
jge 0x49a72f
cmp dword [esp + 0x10], edx
jle 0x49a72f
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edx
dec ebp
jns 0x49a6b5
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x7c]
mov edi, 1
mov ebp, 3
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
xor edx, edx
test ecx, ecx
mov dword [eax + 8], edi
jle 0x49a7a7
xor esi, esi
add eax, 0x14
mov ecx, dword [esp + 0x1c]
mov dword [eax - 8], 0
test ecx, edi
mov ecx, dword [esp + 0x58]
je 0x49a780
mov ecx, dword [esi + ecx + 8]
mov dword [eax - 4], ecx
mov dword [eax], 2
jmp 0x49a78c
mov ecx, dword [esi + ecx]
mov dword [eax - 4], ecx
mov dword [eax], 1
mov ecx, dword [esp + 0x48]
add ebp, 3
shl edi, 1
add eax, 0xc
inc edx
add esi, 0x10
cmp edx, ecx
jl 0x49a75e
mov eax, dword [esp + 0x94]
xor esi, esi
cmp ebp, 1
jle 0x49a7c7
lea edi, [eax + 4]
lea edx, [ebp + 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
mov eax, dword [edi]
add edi, 0xc
add esi, eax
dec edx
jne 0x49a7bd
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x7c]
mov eax, edi
sub eax, esi
sub eax, edx
cdq
idiv ecx
mov ecx, eax
mov eax, 0x2aaaaaab
imul dword [esp + 0x20]
mov eax, edx
mov esi, ecx
shr eax, 0x1f
add edx, eax
cmp ecx, edx
jl 0x49a7f5
mov esi, edx
cmp ebp, 3
jle 0x49a820
mov ecx, dword [esp + 0x94]
mov eax, 0xaaaaaaab
add ecx, 4
dec ebp
mul ebp
shr edx, 1
mov eax, dword [ecx - 4]
mov ebp, dword [ecx]
add eax, ebp
add ecx, 0xc
add eax, esi
dec edx
mov dword [ecx - 4], eax
jne 0x49a80e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], 0x5ec088
mov dword [0x627480], eax
mov ecx, dword [esp + 0x58]
mov byte [esp + 0x70], 3
test ecx, ecx
je 0x49a84c
push ecx
call sub.mfc42u.dll_operatordelete
mov eax, dword [0x627480]
add esp, 4
mov ebp, dword [esp + 0x80]
mov byte [esp + 0x70], 1
xor esi, esi
jmp 0x49a8b6
call dword [sym.imp.user32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
sub ecx, edi
push 4
push ecx
push 0
push 0
push edx
mov ecx, ebx
call fcn.004977a0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
sub eax, ecx
mov ecx, dword [esi + 8]
sub ecx, edx
mov edx, dword [esp + 0x94]
xor esi, esi
mov dword [edx], edi
mov edi, dword [esp + 0x84]
mov dword [edx + 4], ecx
mov dword [edx + 8], 4
jmp 0x49a8b6
mov edi, dword [esp + 0x84]
mov dword [0x627480], esi
lea esi, [ebx + 0xe04]
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.user32.dll_SetRectEmpty]
mov ecx, dword [esp + 0x7c]
sub esp, 0x10
mov eax, esp
mov edx, dword [esp + 0x98]
mov dword [eax], ecx
mov ecx, ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x88]
push eax
call fcn.004979d0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
sub eax, ecx
lea ecx, [eax + eax]
mov eax, dword [0x627484]
test eax, eax
je 0x49a938
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov esi, eax
mov eax, ecx
cdq
and edx, 3
add eax, edx
mov ecx, eax
mov eax, dword [esp + 0x88]
sar ecx, 2
sar esi, 2
sub eax, ecx
add esi, ebp
sub eax, ebp
mov dword [esp + 0x14], eax
jmp 0x49a97e
mov edx, dword [esp + 0x2c]
mov eax, edx
sub eax, ecx
mov ecx, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x14], eax
jns 0x49a97b
mov eax, dword [ebx + 0x17c]
test eax, eax
je 0x49a969
mov dword [esp + 0x90], 0
mov esi, ebp
mov dword [esp + 0x14], edx
jmp 0x49a97e
mov dword [0x627484], 1
mov esi, ebp
mov dword [esp + 0x14], edx
jmp 0x49a97e
lea esi, [eax + ebp]
mov ecx, dword [esp + 0x7c]
sub esp, 0x10
mov edx, dword [esp + 0x20]
mov eax, esp
mov dword [0x627480], edx
mov edx, dword [esp + 0x98]
mov dword [eax], ecx
mov ecx, ebx
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x88]
push ebp
mov dword [eax + 8], edi
mov dword [eax + 0xc], edx
call fcn.004979d0
mov eax, dword [esp + 0x94]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x80]
sub edi, ecx
mov ecx, ebx
push edi
push esi
push edx
push ebp
call fcn.004977a0
mov eax, dword [esp + 0x90]
test eax, eax
je 0x49aa2a
mov eax, dword [esp + 0x48]
mov ebp, 1
cmp eax, ebp
jl 0x49aa26
mov eax, dword [esp + 0x94]
lea edi, [eax + 0xc]
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x44]
mov edx, dword [edi]
push ecx
mov ecx, dword [eax + ebp*4 - 4]
mov eax, dword [esp + 0x7c]
push esi
push edx
mov edx, dword [esp + 0x98]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0049b150
mov eax, dword [esp + 0x48]
inc ebp
add edi, 0xc
cmp ebp, eax
jle 0x49a9f5
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x49aa3b
mov edx, dword [ebp]
push eax
mov ecx, ebp
call dword [edx + 0x30]
mov dword [esp + 0x40], 0x5eaf38
mov eax, dword [esp + 0x44]
mov byte [esp + 0x70], 4
test eax, eax
je 0x49aa59
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x40], 0x5e262c
mov dword [esp + 0x38], 0x5e3df4
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 5
call sub.mfc42u.dll_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x64
ret 0x20