Function at 0x4d3da0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
push ebx
sub esp, 0x10c
mov dword [esp + 0x30], eax
mov dword [esp], eax
call fcn.004bc570
mov dword [esp], 0x5ee118
mov edi, eax
mov eax, dword [0x5ecbec]
mov ecx, 8
mov dword [esp + 4], ecx
call dword [eax + 0x4cc]
test edi, edi
mov ebx, eax
je 0x4d4080
mov edx, dword [edi + 0x14]
test edx, edx
je 0x4d4080
mov edx, dword [edi]
mov ecx, dword [edx + 0x5c]
lea eax, [ecx + 1]
mov dword [edx + 0x5c], eax
xor eax, eax
cmp ebp, 0x102
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov eax, dword [edi]
mov dword [esp + 0xac], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0xb0], eax
ja 0x4d4090
cmp ebp, 0x100
jb 0x4d4008
call fcn.00516ed0
mov dword [esp + 0x2c], eax
cmp ebp, 0x104
sete dl
cmp ebp, 0x100
sete al
or eax, edx
mov ecx, eax
and ecx, 1
jne 0x4d3e6c
cmp ebp, 0x105
sete al
cmp ebp, 0x101
sete dl
or eax, edx
test al, 1
je 0x4d3ebc
mov eax, dword [esp + 0x124]
xor ebx, ebx
mov edx, eax
shr edx, 0x10
and edx, 0x4000
cmp dword [esp + 0x120], 0x12
je 0x4d43d2
ja 0x4d4263
cmp dword [esp + 0x120], 0x10
je 0x4d43a4
cmp dword [esp + 0x120], 0x11
je 0x4d447a
test edx, edx
je 0x4d43c7
or dword [esp + 0x2c], ebx
call fcn.004d3be0
mov dword [esp + 0x28], eax
call sub.USER32.dll_GetMessagePos
movsx ebx, ax
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
sar esi, 0x10
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], esi
mov dword [esp], eax
call sub.USER32.dll_ScreenToClient
mov edx, dword [edi]
sub esp, 8
mov eax, dword [edi + 8]
mov edx, dword [edx + 0x88]
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + edx + 8]
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], esi
mov dword [esp + 0xb4], eax
xor eax, eax
cmp ebp, 0x104
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xbc], eax
mov eax, 1
mov dword [esp + 0xd8], eax
je 0x4d4161
ja 0x4d40ae
cmp ebp, 0x101
je 0x4d40cf
jbe 0x4d414e
cmp ebp, 0x102
lea esi, [esp + 0xa0]
jne 0x4d4070
mov eax, 2
mov dword [esp + 0xa0], eax
mov eax, 0xffffffff
mov dword [esp + 0xa8], eax
xor eax, eax
mov dword [esp + 0xd4], eax
mov eax, 1
mov dword [esp + 0xe0], eax
movzx eax, byte [esp + 0x120]
mov byte [esp + 0xdc], al
movzx eax, al
mov dword [esp], eax
call sub.KERNEL32.dll_IsDBCSLeadByte
sub esp, 4
test eax, eax
jne 0x4d4514
xor eax, eax
lea esi, [esp + 0xa0]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004ae380
mov eax, 3
mov dword [esp + 0xa0], eax
jmp 0x4d4070
cmp ebp, 0xf
je 0x4d4406
jbe 0x4d42a9
cmp ebp, 0x10
jne 0x4d4080
mov dword [esp], edi
mov eax, 0x21
mov ebp, 0x5d2b9d
mov dword [esp + 0xa0], eax
mov eax, 0x5d2bae
mov dword [esp + 4], eax
call fcn.005161d0
mov dword [esp + 0xb4], eax
mov eax, 0x20
mov dword [esp + 0xb8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.005161d0
mov dword [esp + 0xbc], eax
lea esi, [esp + 0xa0]
nop
lea esi, [esi]
mov dword [esp], esi
xor eax, eax
mov dword [esp + 4], eax
call fcn.004ae380
nop
add esp, 0x10c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebp, 0x109
je 0x4d3e30
ja 0x4d40f7
lea eax, [ebp - 0x104]
cmp eax, 1
ja 0x4d4080
jmp 0x4d3e30
cmp ebp, 0x109
je 0x4d4484
ja 0x4d4355
cmp ebp, 0x105
lea esi, [esp + 0xa0]
jne 0x4d4070
mov eax, dword [esp + 0x120]
mov ecx, 3
xor edx, edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xd4], eax
jmp 0x4d4064
cmp ebp, 0x20a
je 0x4d3e30
cmp ebp, 0x307
jne 0x4d4080
cmp dword [ebx + 4], 1
je 0x4d4080
mov dword [esp], edi
mov eax, 0x1d
mov dword [esp + 0xa0], eax
mov eax, 0x5d2bbb
mov dword [esp + 4], eax
call fcn.005161d0
mov dword [esp + 0xb4], eax
call fcn.004d3be0
mov dword [esp + 0xb8], eax
jmp 0x4d4064
cmp ebp, 0x100
lea esi, [esp + 0xa0]
jne 0x4d4070
mov eax, dword [esp + 0x120]
mov ecx, 2
mov edx, 0xffffffff
mov dword [esp + 0xa0], ecx
lea esi, [esp + 0xa0]
xor ecx, ecx
mov dword [esp + 0xa8], edx
lea ebx, [esp + 0x40]
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0xe0], eax
lea esi, [esi]
cmp ecx, 3
jg 0x4d4070
mov dword [esp], ebx
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x10], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
call sub.USER32.dll_PeekMessageA
sub esp, 0x14
test eax, eax
je 0x4d4070
mov eax, dword [esp + 0x44]
cmp eax, 0x102
sete dl
cmp eax, 0x106
sete al
or eax, edx
test al, 1
je 0x4d4070
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
call sub.USER32.dll_GetMessageA
sub esp, 0x10
cmp dword [esp + 0x44], 0x102
je 0x4d4253
mov edx, dword [esi + 0x40]
mov eax, dword [esp + 0x48]
lea ecx, [edx + 1]
mov byte [esi + edx + 0x3c], al
mov dword [esi + 0x40], ecx
mov eax, dword [esp + 0x48]
cmp ax, 0xff
jbe 0x4d41a0
shr eax, 8
mov byte [esi + ecx + 0x3c], al
lea ecx, [edx + 2]
cmp ecx, 3
mov dword [esi + 0x40], ecx
jle 0x4d41a9
jmp 0x4d4070
test byte [esp + 0x4f], 0x20
je 0x4d4219
mov dword [esi + 0x30], 0
jmp 0x4d4219
cmp dword [esp + 0x120], 0x90
je 0x4d43ae
ja 0x4d43dc
cmp dword [esp + 0x120], 0x14
jne 0x4d3eb0
test ecx, ecx
je 0x4d3eb0
mov eax, dword [esp + 0x2c]
mov ebx, 2
and eax, 2
cmp eax, edx
sete al
movzx edx, al
jmp 0x4d3eb0
lea eax, [ebp - 7]
cmp eax, 1
ja 0x4d4080
mov eax, dword [esp + 0x120]
mov dword [esp], eax
call fcn.004bc570
mov ebx, eax
lea esi, [esi]
lea edi, [edi]
test byte [edi + 0x98], 2
jne 0x4d42e5
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x4d42d0
jmp 0x4d4080
test ebx, ebx
je 0x4d42f9
test byte [ebx + 0x98], 2
jne 0x4d42f9
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x4d42e9
cmp ebp, 7
je 0x4d44f5
cmp ebx, edi
je 0x4d4080
mov eax, dword [edi + 0x14]
lea esi, [esp + 0xa0]
mov dword [esp + 0xb0], eax
xor eax, eax
cmp ebp, 7
setne al
add eax, 9
mov dword [esp + 0xa0], eax
xor eax, eax
cmp ebp, 8
mov dword [esp + 0xb4], eax
mov eax, 3
mov dword [esp + 0xb8], eax
jne 0x4d4070
call sub.USER32.dll_DestroyCaret
jmp 0x4d4064
cmp ebp, 0x20a
lea esi, [esp + 0xa0]
jne 0x4d4070
sar dword [esp + 0x120], 0x10
mov ebp, 0x26
mov edi, 0xffffffff
mov dword [esp + 0xa0], ebp
xor ebx, ebx
mov eax, dword [esp + 0x120]
mov dword [esp + 0xa8], edi
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xd4], eax
jmp 0x4d4070
mov ebx, 1
jmp 0x4d3eb0
test ecx, ecx
je 0x4d3eb0
mov eax, dword [esp + 0x2c]
mov ebx, 8
and eax, 8
jmp 0x4d429c
not ebx
and dword [esp + 0x2c], ebx
jmp 0x4d3ebc
mov ebx, 0x20000
jmp 0x4d3eb0
cmp dword [esp + 0x120], 0x91
jne 0x4d3eb0
test ecx, ecx
je 0x4d3eb0
mov eax, dword [esp + 0x2c]
mov ebx, 0x20
and eax, 0x20
jmp 0x4d429c
mov eax, 0xc
lea ebx, [esp + 0x60]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.USER32.dll_BeginPaint
sub esp, 8
mov edx, dword [esp + 0x68]
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0xb4], edx
sub eax, edx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xb8], ecx
sub eax, ecx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sub.USER32.dll_EndPaint
sub esp, 8
xor eax, eax
mov dword [esp + 0xc4], eax
jmp 0x4d4064
mov ebx, 4
jmp 0x4d3eb0
mov eax, 2
lea esi, [esp + 0x34]
mov dword [esp + 0xa0], eax
mov eax, 0xfffffffd
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x120]
mov dword [esp + 4], esi
mov dword [esp + 0xd4], eax
mov dword [esp], eax
mov eax, dword [0x5ecbec]
call dword [eax + 0x518]
xor ecx, ecx
test eax, eax
mov ebx, eax
mov dword [esp + 0xe0], eax
jle 0x4d3fe5
movzx eax, byte [ecx + esi]
mov byte [esp + ecx + 0xdc], al
inc ecx
cmp ebx, ecx
setg dl
xor eax, eax
cmp ecx, 2
setle al
test eax, edx
jne 0x4d44d3
jmp 0x4d3fe5
mov dword [esp], edi
xor esi, esi
xor ecx, ecx
mov dword [esp + 0xc], esi
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.004d3c20
jmp 0x4d4302
xor eax, eax
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x10], eax
lea ebx, [esp + 0x40]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], ebx
call sub.USER32.dll_PeekMessageA
sub esp, 0x14
test eax, eax
je 0x4d3fe5
cmp dword [esp + 0x44], 0x102
jne 0x4d3fe5
mov dword [esp], ebx
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 4], edx
call sub.USER32.dll_GetMessageA
sub esp, 0x10
mov eax, 2
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x48]
mov byte [esp + 0xdd], al
jmp 0x4d3fe5