Function at 0x4e6850
Capabilities:
Check for time delay via gettickcount
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5799e8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5b107c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5b107c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 4], 0
mov dword [esp + 0x10], ebx
jne 0x4e689a
xor eax, eax
jmp 0x4e6f71
cmp dword [ebx + 8], 0
je 0x4e6893
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
add esi, dword [ebp + 8]
add edi, dword [ebp + 0xc]
cmp dword [ebx + 0x12c], 0
mov eax, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], 0
je 0x4e693e
lea eax, [ebx + 0x3c]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e68d8
sub eax, ecx
add eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x130]
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], edi
mov edi, dword [ebx + 0x130]
call fcn.00428e60
mov eax, dword [esp + 0x18]
push 0xb4464646
push eax
lea eax, [ebx + 0x3c]
push eax
mov ax, word [ebx + 0x7c]
lea esi, [esp + 0x34]
call fcn.00422dc0
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 0x18]
mov eax, 1
sub dword [esp + 0x28], eax
sub dword [esp + 0x2c], eax
or ecx, 0xff000000
push ecx
push edx
jmp 0x4e6afe
cmp byte [ebx + 0x3c], 0
je 0x4e6b0f
movzx esi, word [0x69aacc]
call fcn.00534e40
test eax, eax
jne 0x4e69f7
push 0x40
push eax
push 0x65f958
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push str.NoMapInfo_:__d
push 0x65f958
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp byte [ebx + 0x3c], 0
je 0x4e6b0f
lea eax, [ebx + 0x3c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6990
sub eax, edx
cmp word [ebx + 0x11c], 1
lea edi, [eax + 2]
jne 0x4e6acd
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp eax, dword [ebx + 0x120]
jb 0x4e6acd
mov ecx, dword [ebx + 0x124]
mov edx, dword [ecx*4 + 0x5b1420]
mov dword [ebx + 0x80], edx
call esi
add eax, 0x140
mov dword [ebx + 0x120], eax
mov al, byte [ebx + 0x128]
test al, al
jne 0x4e6a8c
inc dword [ebx + 0x124]
jmp 0x4e6a92
mov eax, dword [eax + 0x84]
and eax, 0x2000
je 0x4e6980
lea edi, [ebx + 0xd7]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6a13
sub eax, edx
lea esi, [eax + 2]
push 0x5902c0
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, edi
add esp, 8
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e6a37
sub eax, ecx
movzx ecx, word [ebx + 0x7c]
push eax
push edi
push ecx
call fcn.00422d60
cdq
sub eax, edx
sar eax, 1
push 0xb4464646
neg eax
push esi
mov dword [ebx + 0x24], eax
mov ax, word [ebx + 0x7c]
push edi
lea esi, [esp + 0x34]
call fcn.00422dc0
mov edx, dword [ebx + 0x80]
mov eax, 1
sub dword [esp + 0x28], eax
sub dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
or edx, 0xff000000
push edx
push eax
push edi
jmp 0x4e6b02
dec dword [ebx + 0x124]
mov ecx, dword [ebx + 0x124]
cmp ecx, 0xa
jl 0x4e6ab4
test al, al
jne 0x4e6ab4
mov byte [ebx + 0x128], 1
mov dword [ebx + 0x124], 9
jmp 0x4e6acd
test ecx, ecx
jg 0x4e6acd
cmp al, 1
jne 0x4e6acd
mov byte [ebx + 0x128], 0
mov dword [ebx + 0x124], 0
push 0xb4464646
lea eax, [ebx + 0x3c]
push edi
push eax
mov ax, word [ebx + 0x7c]
lea esi, [esp + 0x34]
call fcn.00422dc0
mov eax, 1
sub dword [esp + 0x28], eax
sub dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x80]
or eax, 0xff000000
push eax
push edi
lea eax, [ebx + 0x3c]
push eax
mov ax, word [ebx + 0x7c]
lea esi, [esp + 0x34]
call fcn.00422dc0
cmp word [ebx + 0x134], 0
je 0x4e6c88
movzx esi, word [0x69aacc]
call fcn.00534e40
test eax, eax
jne 0x4e6b53
push 0x40
push eax
push 0x65f958
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push str.NoMapInfo_:__d
push 0x65f958
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4e6b65
mov ecx, dword [eax + 0x84]
and ecx, 0x2000
jne 0x4e6c88
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x4e6c88
xor edi, edi
cmp dword [eax + 4], edi
je 0x4e6bde
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
cmp eax, dword [ebx + 0x13c]
jb 0x4e6bde
call esi
add eax, 0x50
mov dword [ebx + 0x13c], eax
cmp dword [ebx + 0x140], edi
jne 0x4e6ba5
inc dword [ebx + 0x138]
jmp 0x4e6bb8
movzx edx, word [ebx + 0x134]
mov dword [ebx + 0x138], edx
mov dword [ebx + 0x140], edi
mov eax, dword [ebx + 0x144]
movzx ecx, word [ebx + 0x134]
mov edx, dword [eax + 8]
lea eax, [edx + ecx - 1]
cmp dword [ebx + 0x138], eax
jl 0x4e6bde
mov dword [ebx + 0x140], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], vtable.cImage.0
mov dword [esp + 0x78], edi
mov esi, dword [ebx + 0x138]
mov ecx, 0x67cc34
call fcn.0056e550
cmp eax, edi
je 0x4e6c31
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov edi, dword [eax]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x10]
lea ebx, [esp + 0x38]
lea esi, [esp + 0x48]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x44], edx
call fcn.0042a9c0
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov ecx, dword [ebp + 8]
cdq
sub eax, edx
mov edx, dword [ebx + 0x144]
sar eax, 1
sub ecx, eax
mov eax, dword [ebp + 0xc]
inc ecx
mov dword [esp + 0x10], ecx
push 0xffffffffffffffff
fild dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push ecx
fstp dword [esp + 0x24]
sub eax, dword [edx + 0xc]
lea esi, [esp + 0x54]
mov dword [esp + 0x1c], eax
xor eax, eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x28]
fldz
fstp dword [esp]
call fcn.00425d60
mov dword [esp + 0x78], 0xffffffff
cmp byte [ebx + 0x84], 0
je 0x4e6d9b
movzx esi, word [0x69aacc]
call fcn.00534e40
test eax, eax
jne 0x4e6ccb
push 0x40
push eax
push 0x65f958
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push str.NoMapInfo_:__d
push 0x65f958
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4e6cdd
mov edx, dword [eax + 0x84]
and edx, 0x2000
jne 0x4e6d71
mov ecx, dword [ebx + 0x14]
add ecx, dword [ebp + 0xc]
mov eax, dword [ebx + 0x18]
add eax, dword [ebp + 8]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov esi, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
fsub qword [0x5991d8]
call fcn.00577600
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x84]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6d20
sub eax, esi
lea edi, [eax + 2]
push 0xb4464646
lea eax, [ebx + 0x84]
push edi
push eax
mov ax, word [ebx + 0x7c]
lea esi, [esp + 0x24]
call fcn.00422dc0
mov edx, dword [ebx + 0x80]
mov eax, 1
sub dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
or edx, 0xff000000
push edx
lea eax, [ebx + 0x84]
push edi
push eax
mov ax, word [ebx + 0x7c]
call fcn.00422dc0
cmp byte [ebx + 0x84], 0
je 0x4e6d9b
cmp byte [ebx + 0x95], 0
je 0x4e6e86
push str.OBalloonName.cpp
xor ecx, ecx
mov edx, 0xfe
call fcn.0052cb10
add esp, 4
cmp byte [ebx + 0x95], 0
je 0x4e6e86
movzx esi, word [0x69aacc]
call fcn.00534e40
test eax, eax
jne 0x4e6dde
push 0x40
push eax
push 0x65f958
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push str.NoMapInfo_:__d
push 0x65f958
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4e6def
mov eax, dword [eax + 0x84]
and eax, 0x2000
jne 0x4e6e86
mov edx, dword [ebx + 0x34]
add edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x38]
add ecx, dword [ebp + 8]
mov esi, 1
add dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x14]
fmul qword [0x5991d0]
fsubp st(1)
call fcn.00577600
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x95]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6e36
sub eax, esi
lea edi, [eax + 2]
push 0xb4464646
lea eax, [ebx + 0x95]
push edi
push eax
mov ax, word [ebx + 0x7c]
lea esi, [esp + 0x24]
call fcn.00422dc0
mov eax, 1
sub dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x80]
or eax, 0xff000000
push eax
lea eax, [ebx + 0x95]
push edi
push eax
mov ax, word [ebx + 0x7c]
call fcn.00422dc0
cmp byte [ebx + 0xf8], 0
lea edi, [ebx + 0xf8]
je 0x4e6f6c
movzx esi, word [0x69aacc]
call fcn.00534e40
test eax, eax
jne 0x4e6ecf
push 0x40
push eax
push 0x65f958
call sub.MSVCR100.dll_memset
add esp, 0xc
push esi
push str.NoMapInfo_:__d
push 0x65f958
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x4e6ee1
mov ecx, dword [eax + 0x84]
and ecx, 0x2000
jne 0x4e6f6c
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebp + 8]
lea ecx, [edx + eax + 1]
mov edx, dword [ebx + 0x30]
add edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x38], ecx
fmul qword [0x598e50]
fsubp st(1)
call fcn.00577600
mov dword [esp + 0x3c], eax
mov eax, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, edi
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4e6f30
sub eax, ecx
lea ebx, [eax + 2]
push 0xb4464646
push ebx
push edi
lea esi, [esp + 0x44]
mov eax, 0xb
call fcn.00422dc0
push 0xffffffffffffffff
mov eax, 1
sub dword [esp + 0x3c], eax
sub dword [esp + 0x40], eax
push ebx
push edi
mov eax, 0xb
call fcn.00422dc0
mov eax, 1
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.005762ee
mov esp, ebp
pop ebp
ret 8