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

Disassembly:
push 0xffffffffffffffff
push 0x5d10d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
push 5
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.USER32.dll_GetSysColor]
mov ebx, dword [esp + 0xcc]
mov eax, dword [ebx + 0x184]
test eax, eax
je 0x4ada9b
mov eax, dword [0x652f00]
jmp 0x4adab0
mov eax, dword [esp + 0xd0]
neg eax
sbb eax, eax
and eax, 0x10101
add eax, 0xf4f4f4
mov esi, dword [esp + 0xc4]
mov edx, dword [esi]
push eax
mov ecx, esi
mov dword [esp + 0x2c], eax
call dword [edx + 0x2c]
push 2
mov ecx, esi
call fcn.005b38b7
mov al, byte [ebx + 0x188]
neg al
sbb eax, eax
and eax, 0x8000
mov dword [esp + 0x40], eax
mov al, byte [ebx + 0x60]
test al, al
je 0x4adaee
mov dword [esp + 0x40], 0xff0000
mov ebp, dword [esp + 0xc8]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp]
mov dword [esp + 0x38], ecx
xor eax, eax
mov ecx, 0xb
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x8c], 0xc
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x88]
push ecx
push 0
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x6c]
push 0x120b
push eax
mov dword [esp + 0x44], 0
call dword [0x652d5c]
test eax, eax
je 0x4ae305
lea esp, [esp]
call fcn.005afeed
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xbc], 1
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x14]
push eax
mov eax, dword [edx + 0x6c]
push ecx
push 0x1207
push eax
call dword [0x652d5c]
mov ecx, dword [esp + 0xc8]
mov eax, dword [ecx]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
add ebp, eax
add edi, eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0xa0]
cmp ecx, 9
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
ja case.0x4adbd6.2
jmp dword [ecx*4 + 0x4ae368]
push 0xfefefe
push 1
push 0x20
dec eax
push eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, esi
call fcn.005ba812
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0xfefefe
push 0x12
push 4
push ecx
push edx
mov ecx, esi
call fcn.005ba812
mov edx, dword [ebx + 0x184]
mov eax, dword [esi + 4]
mov ecx, dword [ebx + 0x140]
neg edx
mov ebp, dword [0x658fe0]
sbb edx, edx
and edx, 4
push edx
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0xfefefe
push 0x10
push 0x10
push edx
mov edx, dword [esp + 0x2c]
add edx, 4
push edx
push eax
lea edi, [ebx + 0x140]
push 0x10
push ecx
mov ecx, 0x658fd8
call fcn.004c3de0
push eax
push ebp
call dword [sym.imp.COMCTL32.dll_ImageList_DrawEx]
cmp dword [ebx + 0x1c], 0xd
je 0x4adcb8
mov eax, dword [edi]
push 0x2e
push eax
call fcn.0057b09e
add esp, 8
test eax, eax
je 0x4adcb8
sub eax, dword [edi]
sar eax, 1
test eax, eax
jle 0x4adcb8
push eax
lea eax, [esp + 0x60]
push eax
mov ecx, edi
call fcn.0041ce60
mov byte [esp + 0xbc], 2
push eax
lea ecx, [esp + 0x14]
call fcn.00405540
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x5c]
call fcn.00401b70
add dword [esp + 0x14], 0x14
jmp case.0x4adbd6.2
lea ecx, [esp + 0x10]
push edi
call fcn.00405540
add dword [esp + 0x14], 0x14
jmp case.0x4adbd6.2
cmp dword [ebx + 0x1c], 0xd
jne 0x4adce5
push 0x5f32dc
lea ecx, [esp + 0x14]
call fcn.004055d0
jmp case.0x4adbd6.2
mov eax, dword [ebx + 0x140]
lea edi, [ebx + 0x140]
push 0x2e
push eax
call fcn.0057b09e
add esp, 8
test eax, eax
je 0x4add3e
sub eax, dword [edi]
sar eax, 1
test eax, eax
jle 0x4add3e
inc eax
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call fcn.0040db40
mov byte [esp + 0xbc], 3
push eax
lea ecx, [esp + 0x14]
call fcn.00405540
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x4c]
call fcn.00401b70
jmp case.0x4adbd6.2
push 0x5e6fc8
lea ecx, [esp + 0x14]
call fcn.004055d0
jmp case.0x4adbd6.2
mov edi, dword [esp + 0x28]
push edi
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.005ba4b0
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x652ed4
mov ecx, esi
mov ebp, eax
call dword [edx + 0x28]
mov ebx, eax
mov eax, dword [esi]
push 0xb77257
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
mov eax, dword [0x6613bc]
mov eax, dword [eax + 0x114]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x78]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [0x652b60]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
sub eax, edi
cmp ecx, eax
mov dword [esp + 0x48], edx
jle 0x4adde5
mov eax, dword [0x6613bc]
mov ecx, dword [esp + 0x18]
add eax, 0x114
push eax
push ecx
push edi
push esi
call fcn.004ac760
jmp 0x4adec1
mov edx, dword [0x6613bc]
add edx, 0x114
push edx
mov edx, dword [esp + 0x1c]
sub eax, ecx
push edx
cdq
sub eax, edx
sar eax, 1
add eax, edi
push eax
push esi
call fcn.004ac760
jmp 0x4adec1
mov edi, dword [esp + 0x28]
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.005ba4b0
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [esi]
push 0x652ed4
mov ecx, esi
mov ebp, eax
call dword [edx + 0x28]
mov ebx, eax
mov eax, dword [esi]
push 0xb77257
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
push 0x5ea3c4
lea ecx, [esp + 0x40]
call fcn.00406630
mov byte [esp + 0xbc], 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x68]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [0x652b60]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x48], ecx
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x3c]
call fcn.00401b70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub eax, ecx
cmp edi, eax
push 0x5ea3c4
push edx
jle 0x4adeb1
push ecx
jmp 0x4adebb
sub eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, ecx
push eax
push esi
call fcn.004abec0
mov eax, dword [esi]
add esp, 0x10
push ebp
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x28]
mov ebx, dword [esp + 0xcc]
jmp case.0x4adbd6.2
mov eax, dword [ebx + 0x154]
test eax, eax
mov ecx, dword [ebx + 0x150]
ja 0x4adef8
test ecx, ecx
jbe case.0x4adbd6.2
push 0
push 0
push eax
push ecx
mov ecx, dword [0x6613bc]
lea eax, [esp + 0x68]
push eax
call fcn.004b3500
mov byte [esp + 0xbc], 5
push eax
lea ecx, [esp + 0x14]
call fcn.00405540
mov byte [esp + 0xbc], 1
lea ecx, [esp + 0x58]
call fcn.00401b70
jmp case.0x4adbd6.2
mov eax, dword [ebx + 0x15c]
test eax, eax
je case.0x4adbd6.8
mov ecx, dword [esp + 0xd4]
test ecx, ecx
jne case.0x4adbd6.8
push eax
lea ecx, [esp + 0x14]
push 0x5e3b88
push ecx
call fcn.0040a170
add esp, 0xc
jmp case.0x4adbd6.2
mov eax, dword [ebx + 0x158]
test eax, eax
jne 0x4adf7a
push 0x5e3a20
lea ecx, [esp + 0x14]
call fcn.004055d0
jmp case.0x4adbd6.2
mov ecx, dword [esp + 0xd4]
test ecx, ecx
jne 0x4adf6a
push eax
lea edx, [esp + 0x14]
push 0x5e3b88
push edx
call fcn.0040a170
mov eax, dword [ebx + 0xcc]
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x10]
je 0x4adfb2
push str._VG_
call fcn.004031d0
jmp case.0x4adbd6.2
push str._ED_
call fcn.004031d0
jmp case.0x4adbd6.2
push 0x5e3a20
call fcn.0057a0fd
add esp, 4
push eax
lea ecx, [esp + 0x14]
push 0x5e3a20
call fcn.004053c0
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x38], edx
jl 0x4adfe8
mov dword [esp + 0x38], edx
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x2c], eax
jg 0x4adff6
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0xa0]
cmp ecx, 4
jne 0x4ae034
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae2d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4ae2d1
cmp ecx, 2
jne 0x4ae06b
mov dword [esp + 0xbc], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae2d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4ae2d1
cmp ecx, 3
je 0x4ae2bd
sub eax, edx
cmp eax, 8
jge 0x4ae084
lea ecx, [esp + 0x10]
call fcn.00404fe0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
lea edx, [esp + 0x60]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [0x652b60]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub edx, ebx
sub edx, 8
cmp eax, edx
mov dword [esp + 0x48], ecx
jle 0x4ae1d4
lea ecx, [ecx]
push 0x5e68e0
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x5c]
push ecx
call fcn.0040dc60
add esp, 0xc
mov byte [esp + 0xbc], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov ebx, dword [esp + 0x24]
lea edx, [esp + 0x70]
push edx
push ecx
push eax
mov eax, dword [esi + 8]
or ebx, 1
push eax
mov dword [esp + 0x34], ebx
call dword [0x652b60]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
sub edx, ebx
sub edx, 8
cmp eax, edx
mov dword [esp + 0x48], ecx
jle 0x4ae12c
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x4ae12c
mov bl, 1
jmp 0x4ae12e
xor bl, bl
mov dword [esp + 0xbc], 1
test byte [esp + 0x24], 1
je 0x4ae16b
and dword [esp + 0x24], 0xfffffffe
mov byte [esp + 0xbc], 1
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ae16b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4ae1bb
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 4]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, edx
mov edx, dword [eax - 8]
dec edi
sub edx, edi
or ecx, edx
jge 0x4ae198
push edi
lea ecx, [esp + 0x14]
call fcn.00402690
mov eax, dword [esp + 0x10]
test edi, edi
jl 0x4ae35e
cmp edi, dword [eax - 8]
jg 0x4ae35e
mov dword [eax - 0xc], edi
mov eax, dword [esp + 0x10]
mov word [eax + edi*2], 0
jmp 0x4ae0c0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jle 0x4ae1d4
push 0x5e68e0
lea ecx, [esp + 0x14]
call fcn.00411ed0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
lea edx, [esp + 0x80]
push edx
push eax
mov eax, dword [esi + 8]
push ecx
push eax
call dword [0x652b60]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
and eax, 3
dec eax
mov dword [esp + 0x48], edx
je 0x4ae236
dec eax
je 0x4ae21a
mov edi, dword [esp + 0x14]
add edi, 4
jmp 0x4ae23f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
jmp 0x4ae23f
mov edi, dword [esp + 0x1c]
sub edi, ecx
sub edi, 4
mov eax, dword [esp + 0xa0]
test eax, eax
mov ebx, dword [esp + 0xcc]
jne 0x4ae260
mov eax, dword [ebx + 0x184]
test eax, eax
mov eax, 0xfefefe
je 0x4ae264
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [ebx + 0x180]
test eax, eax
je 0x4ae296
mov eax, dword [0x652ed0]
test eax, eax
je 0x4ae296
mov edx, dword [esi + 4]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 0xc]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 6
add ecx, 2
push ecx
add edi, 4
push edi
push esi
call fcn.004abdb0
add esp, 0x20
mov dword [esp + 0xbc], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00401b70
mov eax, dword [esp + 0x34]
inc eax
lea edx, [esp + 0x88]
push edx
push eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x6c]
push 0x120b
push ecx
call dword [0x652d5c]
test eax, eax
jne 0x4adb60
mov ebp, dword [esp + 0xc8]
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jge 0x4ae337
mov edx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x18], edx
push ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.005ba4b0
mov ecx, dword [esp + 0x50]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb0
ret 0x14
push 0x80070057
call fcn.00401180
fstp st(3)
dec edx
add ah, cl
fmul qword [edx]
fcmovu st(0), st(7)
dec edx
add byte [ecx - 0x23], dl
dec edx
add byte [esi + ebx*8], cl
dec edx
add al, ah
fimul word [edx]
fisttp word ss:[edx]
pushal
fisttp word [edx]
mov esi, 0xbe004adf
fisttp word [edx]
push 0xffffffffffffffff
push 0x5d113d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
mov eax, dword [0x64aa84]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0xcc], eax
call fcn.005b407e
xor ebx, ebx
mov dword [esp + 0xd4], ebx
mov eax, dword [0x6613c8]
mov ebp, 1
push ebp
add eax, 4
push eax
lea ecx, [esp + 0x70]
call fcn.005789d4
mov byte [esp + 0xd4], 1
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
add ecx, 0x20
sub eax, ecx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], ecx
push eax
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
push ebx
mov ecx, esi
call fcn.005ad403
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub ecx, eax
mov dword [esp + 0x20], ecx
add edx, 0x12
push ebp
mov ecx, esi
mov dword [esp + 0x30], edx
call fcn.005ad403
push 0x652ec4
lea ecx, [esp + 0x78]
mov dword [esp + 0x18], eax
call fcn.005b4286
mov ecx, dword [esi + 0xa4]
add ecx, 0x6d4
mov dword [esp + 0x64], eax
call fcn.004ca160
mov edi, eax
cmp edi, ebx
je 0x4aea05
cmp dword [edi + 4], ebx
je 0x4ae58f
mov eax, dword [esi + 0xc4]
mov dword [esi + 0xc0], ebx
mov edx, dword [0x6613bc]
mov dword [0x6615a8], eax
mov ecx, dword [esi + 0xc0]
add ecx, eax
mov dword [0x6615b0], ecx
mov eax, dword [edx + 0x104]
push eax
lea ecx, [esp + 0x14]
call fcn.00401f30
mov byte [esp + 0xd4], 2
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], ebp
jle 0x4ae4da
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x14]
call fcn.00401a50
mov eax, dword [esp + 0x10]
mov ecx, dword [0x6615dc]
push eax
push ecx
push 6
push 7
call fcn.00505140
mov edi, dword [edi + 0x44]
add esp, 0x10
test edi, edi
je 0x4ae560
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x4ae500
mov eax, dword [edi + 0x178]
test eax, eax
jne 0x4ae559
mov al, byte [edi + 0x189]
test al, al
jne 0x4ae559
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4ae523
dec eax
mov dword [esp + 0x14], eax
jmp 0x4ae559
push 0
push ebp
push edi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, esi
call fcn.004ada50
xor ecx, ecx
test ebp, ebp
sete cl
push 0x12
push 0
lea edx, [esp + 0x28]
push edx
mov ebp, ecx
call ebx
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x3c]
jg 0x4ae560
mov edi, dword [edi + 8]
test edi, edi
jne 0x4ae500
mov byte [esp + 0xd4], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4aea05
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4aea05
mov eax, dword [edi + 0x4c]
cmp eax, ebx
je 0x4aea05
add eax, 0x6c
push eax
lea eax, [esp + 0x20]
push eax
mov ecx, 0x658fac
call fcn.00519590
mov eax, dword [esp + 0x1c]
cmp eax, dword [0x658fb0]
mov byte [esp + 0x1b], 0
je 0x4ae5ca
mov ecx, dword [eax + 0x10]
mov ebx, dword [ecx + 0x44]
mov cl, byte [ecx]
mov byte [esp + 0x1b], cl
mov edx, dword [eax + 0x10]
push 0
mov dword [esp + 0x20], edx
call fcn.0057bbd0
mov ecx, dword [0x6613bc]
add esp, 4
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x4ae6f6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ae6f6
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4ae6f6
mov edx, dword [ecx + 0x100]
add edx, eax
cmp dword [esp + 0x10], edx
jb 0x4ae6f6
mov eax, dword [esi + 0xc4]
mov dword [esi + 0xc0], 0
mov edx, dword [0x6613bc]
add eax, 0x87
mov dword [0x6615a8], eax
mov ecx, dword [esi + 0xc0]
add ecx, eax
mov dword [0x6615b0], ecx
mov eax, dword [edx + 0x104]
push eax
lea ecx, [esp + 0x14]
call fcn.00401f30
mov byte [esp + 0xd4], 4
lea ecx, [esp + 0x10]
call fcn.00401bc0
push eax
mov eax, dword [0x6615dc]
push eax
push 6
push 7
call fcn.00505140
mov edi, ebx
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
add esp, 0x10
mov eax, dword [edi + 0x178]
test eax, eax
jne 0x4ae6d9
mov al, byte [edi + 0x189]
test al, al
jne 0x4ae6d9
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x4ae6a3
dec eax
mov dword [esp + 0x14], eax
jmp 0x4ae6d9
push 1
push ebp
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x84]
push edx
mov ecx, esi
call fcn.004ada50
xor eax, eax
test ebp, ebp
sete al
push 0x12
push 0
lea ecx, [esp + 0x28]
push ecx
mov ebp, eax
call ebx
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x3c]
jg 0x4ae6e0
mov edi, dword [edi + 8]
test edi, edi
jne 0x4ae680
mov byte [esp + 0xd4], 1
lea ecx, [esp + 0x10]
call fcn.00401b70
jmp 0x4aea05
mov eax, dword [edi + 0x4c]
cmp dword [eax + 0x6c], 0xffffffff
je 0x4ae8e8
mov ecx, dword [ecx + 0xf8]
mov eax, dword [esi + 0xc4]
mov dword [esi + 0xc0], ecx
mov dword [0x6615a8], eax
mov edx, dword [esi + 0xc0]
add edx, eax
mov eax, dword [0x6613bc]
mov dword [0x6615b0], edx
mov eax, dword [eax + 0x104]
push eax
lea ecx, [esp + 0x14]
call fcn.00401f30
mov bl, 5
mov byte [esp + 0xd4], bl
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov ecx, dword [0x6615dc]
push eax
push ecx
push 6
push 7
call fcn.00505140
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xc0]
mov edx, dword [esp + 0x48]
add eax, ecx
mov dword [esp + 0x70], eax
add esp, 0x10
lea eax, [esp + 0x54]
mov dword [esp + 0x58], ecx
push eax
lea ecx, [esp + 0x78]
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], edx
call fcn.005b39c2
mov ecx, dword [0x652f04]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x7c]
call fcn.005ba4b0
lea ecx, [esp + 0x14]
call fcn.00401b20
mov byte [esp + 0xd4], 6
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + 0x6c]
cmp eax, dword [edi + 0x68]
je 0x4ae7d1
cmp eax, dword [edi + 0x6c]
je 0x4ae7d1
xor eax, eax
jmp 0x4ae7d6
mov eax, 1
mov cl, byte [esp + 0x1b]
test cl, cl
jne 0x4ae825
test eax, eax
je 0x4ae819
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4ae819
mov edi, dword [eax + 0x38]
push 0
call fcn.0057bbd0
mov ecx, dword [0x6613bc]
mov edx, dword [ecx + 0x100]
add edx, edi
add esp, 4
cmp eax, edx
jb 0x4ae825
test edi, edi
jne 0x4ae819
push 0x5f330c
lea eax, [esp + 0x18]
push eax
jmp 0x4ae82f
push 0x5f32f4
lea ecx, [esp + 0x18]
push ecx
jmp 0x4ae82f
push str.ck_W
lea edx, [esp + 0x18]
push edx
call fcn.0040a170
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x14]
push eax
push ecx
push edx
lea eax, [esp + 0x80]
push eax
call fcn.004ac760
add esp, 0x10
push 0x12
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0xf8]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xc4]
mov edx, dword [0x6613bc]
mov dword [0x6615a8], eax
mov ecx, dword [esi + 0xc0]
add ecx, eax
mov dword [0x6615b0], ecx
mov eax, dword [edx + 0x104]
push eax
lea ecx, [esp + 0x14]
call fcn.00401e90
lea ecx, [esp + 0x10]
call fcn.00401bc0
push eax
mov eax, dword [0x6615dc]
push eax
push 6
push 7
call fcn.00505140
add esp, 0x10
mov byte [esp + 0xd4], bl
lea ecx, [esp + 0x14]
call fcn.00401b70
mov byte [esp + 0xd4], 1
lea ecx, [esp + 0x10]
call fcn.00401b70
jmp 0x4aea05
mov ecx, dword [esi + 0xc4]
mov eax, dword [esi + 0xc0]
add eax, ecx
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x54]
mov dword [esp + 0x5c], ecx
push edx
lea ecx, [esp + 0x78]
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], eax
call fcn.005b39c2
mov eax, dword [0x652f04]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x7c]
call fcn.005ba4b0
lea ecx, [esp + 0x10]
call fcn.00401b20
mov byte [esp + 0xd4], 7
lea edx, [esp + 0x10]
push 0x5f330c
push edx
call fcn.0040a170
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
lea eax, [esp + 0x88]
push eax
call fcn.004ac760
add esp, 0x18
push 0x12
push 0
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [0x6613bc]
mov eax, dword [edx + 0xf8]
mov dword [esi + 0xc0], eax
mov eax, dword [esi + 0xc4]
mov edx, dword [0x6613bc]
mov dword [0x6615a8], eax
mov ecx, dword [esi + 0xc0]
add ecx, eax
mov dword [0x6615b0], ecx
mov eax, dword [edx + 0x104]
push eax
lea ecx, [esp + 0x20]
call fcn.00401f30
mov byte [esp + 0xd4], 8
lea ecx, [esp + 0x1c]
call fcn.00401bc0
push eax
mov eax, dword [0x6615dc]
push eax
push 6
push 7
call fcn.00505140
add esp, 0x10
mov byte [esp + 0xd4], 7
lea ecx, [esp + 0x1c]
call fcn.00401b70
mov byte [esp + 0xd4], 1
lea ecx, [esp + 0x10]
call fcn.00401b70
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x78]
call fcn.005b4286
mov edx, dword [esp + 0x24]
push 0
mov ecx, esi
mov dword [esp + 0x38], edx
call fcn.005ad403
mov ecx, dword [esi + 0x6c]
mov ebx, dword [0x652d5c]
mov ebp, eax
lea eax, [esp + 0x40]
push eax
push 0
push 0x1207
push ecx
call ebx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
sub eax, ebp
sub eax, ecx
mov ecx, dword [esp + 0x34]
cmp ecx, edx
jge 0x4aeaa6
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
add eax, ecx
push 0xfefefe
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ecx
push edx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x50], eax
call fcn.005ba4b0
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
sub eax, edi
push 0xf4f4f4
lea ecx, [esp + 0x34]
add edx, eax
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x38], edx
call fcn.005ba4b0
mov edx, dword [esi + 0x6c]
xor edi, edi
push edi
push edi
push 0x1200
push edx
call ebx
test eax, eax
jle 0x4aeb2e
lea esp, [esp]
mov ecx, dword [esi + 0x6c]
lea eax, [esp + 0x40]
push eax
push edi
push 0x1207
push ecx
call ebx
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push 0xe6e6e6
push edx
push 1
sub ecx, ebp
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.005ba812
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push 0xffffff
push edx
push 1
sub ecx, ebp
inc ecx
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.005ba812
mov edx, dword [esi + 0x6c]
push 0
push 0
push 0x1200
push edx
inc edi
call ebx
cmp edi, eax
jl 0x4aeac0
mov byte [esp + 0xd4], 0
lea ecx, [esp + 0x68]
call fcn.0057897a
mov dword [esp + 0xd4], 0xffffffff
lea ecx, [esp + 0x74]
call fcn.005b40d9
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xbc]
pop ebx
call fcn.0057981f
add esp, 0xc8
ret