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

Disassembly:
push 0xffffffffffffffff
push 0x5ee9de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
mov eax, dword [0x6707bc]
push ebp
push esi
push edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x114], 0
call fcn.005bb47c
lea ecx, [esp + 0xd8]
mov byte [esp + 0x114], 1
call fcn.004918b0
mov dword [esp + 0xd8], 0x5f7a80
lea ecx, [esp + 0xd8]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x108]
push edx
lea ecx, [esp + 0x110]
push eax
lea edx, [esp + 0xd0]
push ecx
lea eax, [esp + 0xb8]
push edx
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x15c]
lea edx, [esp + 0x104]
push ecx
mov ecx, dword [esp + 0x15c]
push edx
mov edx, dword [esp + 0x15c]
push eax
mov eax, dword [esp + 0x15c]
push ecx
mov ecx, dword [esp + 0x15c]
push edx
mov edx, dword [esp + 0x15c]
push eax
push ecx
mov ecx, dword [esp + 0x160]
push edx
mov byte [esp + 0x14c], 2
call fcn.004edea0
mov edi, dword [esp + 0x120]
mov eax, dword [esp + 0xec]
mov ebp, dword [esp + 0x124]
mov dword [esp + 0xf4], edi
lea edx, [eax + edi]
mov eax, dword [esp + 0xf0]
mov ecx, ebp
mov dword [esp + 0xfc], edx
lea esi, [eax + ebp]
mov eax, dword [esp + 0x150]
test eax, eax
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x100], esi
je 0x4b97b5
mov dword [eax], edi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x14c]
test eax, eax
je 0x4b9862
lea ecx, [esp + 0xf4]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x94]
mov dword [esp + 0x9c], edx
push ecx
mov dword [esp + 0xa4], eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
cmp eax, 1
jne 0x4b9862
lea ecx, [esp + 0xd8]
mov byte [esp + 0x114], al
mov dword [esp + 0xd8], 0x5f7940
call fcn.00491ab0
lea ecx, [esp + 0xc4]
mov byte [esp + 0x114], 0
call fcn.005bb4af
lea ecx, [esp + 0x38]
mov dword [esp + 0x114], 0xffffffff
call fcn.005bc421
jmp 0x4ba204
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xcc]
add edi, 2
xor esi, esi
lea ebp, [edx + ebp + 1]
push ebx
mov ebx, dword [esp + 0x14c]
mov dword [esp + 0x124], edi
test eax, eax
mov dword [esp + 0x128], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0xb4], edi
jle 0x4b995f
mov ecx, dword [0x675b1c]
lea eax, [ecx + 1]
imul eax, esi
add eax, ebp
mov dword [esp + 0xb8], eax
add eax, ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax + esi*4]
mov dword [esp + 0x30], 0
imul ecx, dword [0x675b18]
add ecx, edi
mov dword [esp + 0x2c], vtable.CRgn.0
mov dword [esp + 0xbc], ecx
lea edx, [esp + 0xb4]
mov byte [esp + 0x118], 3
push edx
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x30]
call fcn.005c54af
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, edx
test ebx, ebx
jne 0x4b9920
xor ecx, ecx
jmp 0x4b9923
mov ecx, dword [ebx + 4]
push 4
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CombineRgn]
mov dword [esp + 0x2c], vtable.CGdiObject.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x118], 4
call fcn.005c5506
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
mov byte [esp + 0x118], 2
jl 0x4b98a2
mov ecx, dword [esp + 0x12c]
mov esi, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], esi
call fcn.004c7620
test eax, eax
je 0x4b9af1
cmp byte [esi], 0
jne 0x4b9a71
mov edx, dword [0x675b1c]
mov ecx, dword [0x675b18]
add ecx, edi
lea eax, [edx + ebp]
lea edx, [esp + 0xb4]
push eax
push ecx
push ebp
push edi
push edx
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], vtable.CRgn.0
lea eax, [esp + 0xb4]
mov byte [esp + 0x118], 5
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
push eax
lea ecx, [esp + 0x30]
call fcn.005c54af
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, edx
test ebx, ebx
jne 0x4b99f2
xor ecx, ecx
jmp 0x4b99f5
mov ecx, dword [ebx + 4]
push 4
push eax
push ecx
mov ecx, dword [ebx + 4]
push ecx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov edx, dword [0x6753f0]
lea ecx, [esp + 0x98]
push edx
call fcn.005c556c
test eax, eax
je 0x4b9a1d
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x120]
push eax
lea eax, [esp + 0xb8]
mov edx, dword [ecx + 4]
push eax
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x98], esi
lea ecx, [esp + 0x98]
mov byte [esp + 0x118], 6
call fcn.005c5506
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x118], 7
call fcn.005c5506
jmp 0x4ba1bc
mov esi, dword [esp + 0x120]
mov ecx, dword [0x6753ec]
push ecx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x30]
mov eax, dword [0x6753f0]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [esp + 0x24]
xor ebx, ebx
test eax, eax
jle 0x4ba1bc
jmp 0x4b9aaa
mov ebp, dword [esp + 0x128]
mov ecx, dword [esp + 0xcc]
mov eax, dword [esp + 0x40]
mov esi, dword [ecx + ebx*4]
mov ecx, dword [esp + 0x120]
push esi
push eax
mov edx, dword [ecx]
push ebp
push edi
call dword [edx + 0x5c]
mov edx, dword [esp + 0x40]
mov ecx, dword [0x675b1c]
mov eax, dword [esp + 0x24]
add edx, esi
mov dword [esp + 0x40], edx
inc ebx
lea edx, [ecx + ebp + 1]
cmp ebx, eax
mov dword [esp + 0x128], edx
jl 0x4b9aa3
jmp 0x4ba1bc
lea ecx, [esp + 0x84]
call fcn.005bb47c
lea ecx, [esp + 0x70]
mov byte [esp + 0x118], 8
call fcn.005bb47c
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 9
call fcn.005bb47c
lea ecx, [esp + 0x5c]
mov byte [esp + 0x118], 0xa
call fcn.005bb47c
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x118], 0xb
test eax, eax
jle 0x4b9b7e
neg eax
push eax
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x8c]
call fcn.005bb38c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.005bb38c
mov eax, dword [esp + 0x50]
push 0x26
push eax
lea ecx, [esp + 0x50]
call fcn.005bb38c
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x44]
lea ecx, [esp + 0xdc]
lea edx, [esp + 0x48]
push ecx
push edx
lea ecx, [esp + 0x78]
lea edx, [esp + 0x8c]
push ecx
add eax, esi
push edx
push eax
mov ecx, ebx
call fcn.004bc6e0
mov eax, dword [esp + 0x8c]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x4b9bca
mov edi, eax
mov ecx, dword [esp + 0x64]
push 1
push ecx
lea ecx, [esp + 0x64]
call fcn.005bb38c
dec edi
jne 0x4b9bb7
mov eax, dword [0x6760a8]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4b9e43
mov ebp, eax
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebp
mov edi, ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x9c], edi
call fcn.00502390
push ebp
mov dword [esp + 0xcc], eax
call fcn.005023b0
push eax
call fcn.00502390
mov edx, dword [esp + 0x28]
add esp, 0xc
add esi, edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa8], esi
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edi
push ebp
push edx
call fcn.005023e0
add esp, 0x14
test eax, eax
je 0x4b9e3f
mov esi, dword [esp + 0xa8]
mov ecx, eax
add eax, edi
sub ecx, esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [esp + 0x18], ecx
test eax, eax
lea ebx, [ecx + edi]
jle 0x4b9c29
mov dword [esp + 0x14], 0xfffffff8
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
mov eax, dword [eax + esi*4]
mov edi, dword [edx + esi*4]
add edi, eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4b9d48
cmp eax, ebx
jge 0x4b9e17
cmp edi, ebx
jg 0x4b9cc0
mov edx, dword [esp + 0x4c]
mov dword [edx + esi*4], 0x40
mov eax, dword [esp + 0x60]
mov dword [eax + esi*4], 0x41
jmp 0x4b9e17
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ebp, esi
add ecx, 4
inc esi
push 1
mov dword [esp + 0x18], ecx
inc eax
push ebx
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x1c], eax
call fcn.005bb3b3
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x7c]
call fcn.005bb3b3
mov ecx, dword [esp + 0x4c]
push 1
mov edx, dword [ecx + ebp*4]
lea ecx, [esp + 0x4c]
push edx
push esi
call fcn.005bb3b3
mov eax, dword [esp + 0x60]
push 1
mov ecx, dword [eax + ebp*4]
push ecx
push esi
lea ecx, [esp + 0x68]
call fcn.005bb3b3
mov eax, dword [esp + 0x20]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x74]
mov dword [eax + ebp*4], edx
mov ecx, dword [esp + 0x4c]
mov dword [ecx + ebp*4], 0x40
mov edx, dword [esp + 0x60]
mov dword [edx + ebp*4], 0x41
jmp 0x4b9e13
cmp edi, ecx
jle 0x4b9e17
mov ebp, ecx
sub ebp, eax
cmp edi, ebx
mov dword [edx + esi*4], ebp
mov ebp, edi
jl 0x4b9d5f
mov ebp, ebx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc esi
add eax, 4
push 1
inc edx
push ecx
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
call fcn.005bb3b3
mov ecx, dword [esp + 0x18]
push 1
sub ebp, ecx
lea ecx, [esp + 0x74]
push ebp
push esi
call fcn.005bb3b3
push 1
push 0x40
push esi
lea ecx, [esp + 0x54]
call fcn.005bb3b3
push 1
push 0x41
push esi
lea ecx, [esp + 0x68]
call fcn.005bb3b3
cmp edi, ebx
jle 0x4b9e13
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc esi
add ebp, 4
push 1
inc eax
push ebx
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
call fcn.005bb3b3
sub edi, ebx
push 1
push edi
push esi
lea ecx, [esp + 0x7c]
call fcn.005bb3b3
mov eax, dword [esp + 0x4c]
push 1
mov ecx, dword [eax + ebp]
push ecx
push esi
lea ecx, [esp + 0x54]
call fcn.005bb3b3
mov edx, dword [esp + 0x60]
push 1
lea ecx, [esp + 0x60]
mov eax, dword [edx + ebp]
push eax
push esi
call fcn.005bb3b3
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc esi
add edx, 4
cmp esi, eax
mov dword [esp + 0x14], edx
jl 0x4b9c7a
mov edi, dword [esp + 0x98]
mov ebp, dword [esp + 0x2c]
jmp 0x4b9c29
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x12c]
mov eax, dword [ebx + 0x74]
cmp eax, ecx
jne 0x4ba05f
mov ecx, dword [ebx + 0x7c]
mov ebp, dword [ebx + 0x80]
cmp ecx, ebp
je 0x4ba05f
jl 0x4b9e72
mov dword [esp + 0x14], ebp
mov ebp, ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ebp, eax
jle 0x4ba05f
sub ecx, eax
mov dword [esp + 0x14], ecx
jns 0x4b9e92
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x14]
sub ebp, eax
mov eax, dword [esp + 0x10]
xor esi, esi
test eax, eax
jle 0x4ba05f
mov dword [esp + 0x18], 0xfffffff8
mov edx, dword [esp + 0x88]
mov eax, dword [edx + esi*4]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov edi, dword [edx + esi*4]
add edi, eax
cmp eax, ecx
jl 0x4b9f78
cmp eax, ebp
jge 0x4ba047
cmp edi, ebp
jg 0x4b9ef0
mov eax, dword [esp + 0x4c]
mov dword [eax + esi*4], 0xc
mov edx, dword [esp + 0x60]
mov dword [edx + esi*4], 0xd
jmp 0x4ba047
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov ebx, esi
inc esi
add edx, 4
inc ecx
push 1
mov dword [esp + 0x14], ecx
push ebp
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], edx
call fcn.005bb3b3
sub edi, ebp
push 1
push edi
push esi
lea ecx, [esp + 0x7c]
call fcn.005bb3b3
mov eax, dword [esp + 0x4c]
push 1
mov ecx, dword [eax + ebx*4]
push ecx
push esi
lea ecx, [esp + 0x54]
call fcn.005bb3b3
mov edx, dword [esp + 0x60]
push 1
lea ecx, [esp + 0x60]
mov eax, dword [edx + ebx*4]
push eax
push esi
call fcn.005bb3b3
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
mov ecx, ebp
sub ecx, eax
mov dword [edx + ebx*4], ecx
mov eax, dword [esp + 0x4c]
mov dword [eax + ebx*4], 0xc
mov ecx, dword [esp + 0x60]
mov dword [ecx + ebx*4], 0xd
jmp 0x4ba043
cmp edi, ecx
jle 0x4ba047
mov ebx, ecx
sub ebx, eax
cmp edi, ebp
mov dword [edx + esi*4], ebx
mov ebx, edi
jl 0x4b9f8f
mov ebx, ebp
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc esi
add eax, 4
push 1
inc edx
push ecx
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
call fcn.005bb3b3
mov ecx, dword [esp + 0x14]
push 1
sub ebx, ecx
lea ecx, [esp + 0x74]
push ebx
push esi
call fcn.005bb3b3
push 1
push 0xc
push esi
lea ecx, [esp + 0x54]
call fcn.005bb3b3
push 1
push 0xd
push esi
lea ecx, [esp + 0x68]
call fcn.005bb3b3
cmp edi, ebp
jle 0x4ba043
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc esi
add ebx, 4
push 1
inc eax
push ebp
push esi
lea ecx, [esp + 0x90]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
call fcn.005bb3b3
sub edi, ebp
push 1
push edi
push esi
lea ecx, [esp + 0x7c]
call fcn.005bb3b3
mov edx, dword [esp + 0x4c]
push 1
lea ecx, [esp + 0x4c]
mov eax, dword [ebx + edx]
push eax
push esi
call fcn.005bb3b3
mov ecx, dword [esp + 0x60]
push 1
mov edx, dword [ebx + ecx]
lea ecx, [esp + 0x60]
push edx
push esi
call fcn.005bb3b3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc esi
add edx, 4
cmp esi, eax
mov dword [esp + 0x18], edx
jl 0x4b9eaa
mov edi, dword [esp + 0x120]
mov ecx, dword [0x6753c0]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x2c]
mov eax, dword [esp + 0x10]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], ebx
jle 0x4ba175
mov eax, dword [esp + 0x4c]
mov edx, dword [edi]
mov esi, dword [esp + 0x28]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx*4 + 0x6753bc]
mov ecx, edi
push eax
call dword [edx + 0x30]
mov eax, dword [esp + 0x60]
mov edx, dword [edi]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx*4 + 0x6753bc]
mov ecx, edi
push eax
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x1c]
mov ebp, dword [ecx + ebx*4]
mov ebx, dword [edx + ebx*4]
mov edx, dword [esp + 0x24]
add ebp, eax
xor ecx, ecx
mov dword [esp + 0x2c], ebx
test edx, edx
mov eax, ebp
jle 0x4ba0fa
mov edx, dword [esp + 0xcc]
mov esi, dword [edx]
cmp eax, esi
mov dword [esp + 0x28], esi
jl 0x4ba0fa
sub eax, esi
inc ecx
add edx, 4
cmp ecx, dword [esp + 0x24]
jl 0x4ba0e4
lea edx, [eax + ebx]
cmp edx, esi
jge 0x4ba103
mov esi, edx
mov ebx, dword [esp + 0x40]
sub esi, eax
add ebx, ebp
push esi
push ebx
mov ebx, dword [0x675b1c]
imul eax, dword [0x675b18]
inc ebx
mov edx, dword [edi]
imul ebx, ecx
mov ecx, dword [esp + 0x130]
add ebx, ecx
mov ecx, dword [esp + 0x12c]
add eax, ecx
push ebx
push eax
mov ecx, edi
call dword [edx + 0x5c]
mov eax, dword [esp + 0x2c]
sub eax, esi
test eax, eax
jle 0x4ba162
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
mov ebx, dword [esp + 0x20]
sub esi, edx
add esi, ebp
mov dword [ecx + ebx*4], esi
mov edx, dword [esp + 0x74]
mov dword [edx + ebx*4], eax
jmp 0x4ba16b
mov ebx, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x20], ebx
cmp ebx, dword [esp + 0x10]
jl 0x4ba086
lea ecx, [esp + 0x5c]
mov byte [esp + 0x118], 0xa
call fcn.005bb4af
lea ecx, [esp + 0x48]
mov byte [esp + 0x118], 9
call fcn.005bb4af
lea ecx, [esp + 0x70]
mov byte [esp + 0x118], 8
call fcn.005bb4af
lea ecx, [esp + 0x84]
mov byte [esp + 0x118], 2
call fcn.005bb4af
lea ecx, [esp + 0xdc]
mov byte [esp + 0x118], 1
mov dword [esp + 0xdc], 0x5f7940
call fcn.00491ab0
lea ecx, [esp + 0xc8]
mov byte [esp + 0x118], 0
call fcn.005bb4af
lea ecx, [esp + 0x3c]
mov dword [esp + 0x118], 0xffffffff
call fcn.005bc421
pop ebx
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10c
ret 0x38