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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0xff
push str.levels_b30_b30
push 0x7196a1
call fcn.00623ce0
add esp, 0xc
lea ecx, [esp + 0x28]
xor ebx, ebx
push ecx
mov byte [0x7197a0], bl
mov byte [0x71967f], 1
mov word [0x71967c], 0xffff
mov byte [0x719691], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ebx
push 0x3e8
push edx
push eax
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov dword [0x71968c], eax
call fcn.004c6350
call fcn.004d79c0
call fcn.004aa780
call fcn.0045ab20
mov esi, 0x68e58c
mov edx, dword [esi - 4]
mov eax, dword [esi]
push edx
call fcn.004951a0
add esi, 0xc
add esp, 4
cmp esi, 0x68e670
jl 0x4c7731
push str.banned.txt
push 0x6ac828
push 0x66d8c8
push 0x71c230
call fcn.006238e3
add esp, 0x10
mov dword [0x6b84c4], 0x38
mov dword [0x6b84c8], ebx
mov dword [0x6b84cc], ebx
call fcn.004e32d0
mov dword [0x6b84d0], 8
mov dword [0x6b84d4], ebx
mov dword [0x6b84d8], ebx
call fcn.004c6410
call fcn.004c9e10
call fcn.004c9f70
call fcn.004c9cc0
mov al, byte [0x71960c]
mov byte [0x7251d6], al
cmp dword [0x719600], ebx
jne 0x4c77fc
cmp dword [0x719610], ebx
jne 0x4c77fc
cmp dword [0x71961c], ebx
jne 0x4c77fc
cmp dword [0x71d0d0], ebx
jne 0x4c77fc
push str.bungie.bik
call fcn.0043ed20
add esp, 4
push str.gearbox.bik
call fcn.0043ed20
add esp, 4
push str.mgs.bik
call fcn.0043ed20
add esp, 4
mov byte [0x696570], bl
call fcn.004c6f00
mov dword [esp + 0x24], eax
cmp dword [0x71d0cc], ebx
je 0x4c7822
mov dword [esp + 0x20], 0x7e
wait
fninit
fldcw word [esp + 0x20]
cmp word [0x71967c], 0xffff
je 0x4c7831
call fcn.004c9ba0
cmp byte [0x719677], bl
je 0x4c786d
mov ecx, dword [0x6f1c94]
cmp byte [ecx + 2], bl
jne 0x4c786d
mov ax, word [0x719698]
mov dx, ax
inc ax
cmp dx, 0x5a
mov word [0x719698], ax
jle 0x4c786d
mov byte [0x719677], bl
mov word [0x719698], bx
call fcn.00538370
cmp byte [0x719676], bl
je 0x4c787a
call fcn.004c9c10
cmp byte [0x719678], bl
je 0x4c78c4
mov eax, dword [0x6f1c94]
cmp byte [eax + 2], bl
jne 0x4c78c4
mov ecx, dword [0x6f17a4]
cmp byte [ecx + 9], bl
jne 0x4c78c4
mov ax, word [0x71969a]
mov dx, ax
inc ax
cmp dx, 0x5a
mov word [0x71969a], ax
jle 0x4c78c4
call fcn.00474030
test al, al
je 0x4c78c4
mov byte [0x719678], bl
mov word [0x71969a], bx
cmp byte [0x719667], bl
je 0x4c7906
call dword [0x69e7bc]
push 1
mov byte [0x719691], bl
mov byte [0x719692], bl
call fcn.00538810
add esp, 4
test al, al
setne al
xor dl, dl
mov byte [0x6e2d01], al
mov byte [0x719692], 1
call fcn.004aa3c0
mov byte [0x719667], bl
cmp byte [0x719661], bl
je 0x4c7913
call fcn.004c97b0
cmp byte [0x719662], bl
je 0x4c7933
call fcn.00538370
mov edi, 0x1e
mov dword [0x718ec8], edi
mov byte [0x719662], bl
jmp 0x4c7938
mov edi, 0x1e
cmp byte [0x719663], bl
je 0x4c796a
cmp byte [0x6e2f28], bl
jne 0x4c7964
mov ecx, dword [0x6f17a4]
cmp byte [ecx + 0xa], bl
je 0x4c7964
call fcn.00538370
mov dword [0x718ec8], edi
mov byte [0x719662], bl
mov byte [0x719663], bl
cmp byte [0x719660], bl
je 0x4c7a08
mov edx, dword [0x6f1c94]
cmp byte [edx + 2], bl
jne 0x4c7a08
xor esi, esi
call fcn.0053efb0
call fcn.0045b4d0
call fcn.00490ba0
xor ecx, ecx
mov dword [0x7123c0], ecx
mov dword [0x7123c4], ecx
mov dword [0x7123c8], ecx
mov dword [0x7123cc], ecx
mov dword [0x7123d0], ecx
mov dword [0x7123d4], ecx
mov dword [0x7123d8], ecx
xor eax, eax
mov dword [0x7123dc], ecx
mov word [0x7126f8], ax
mov dword [0x7123e0], ecx
mov byte [0x712468], 1
mov byte [0x7126fa], al
mov dword [0x7123e4], ecx
call fcn.0045b1b0
call fcn.004c8880
call fcn.00470ce0
call fcn.0045ba10
mov dword [0x718ec8], edi
mov byte [0x719660], bl
cmp byte [0x719679], bl
je 0x4c7a4e
mov edx, dword [0x6e2cf0]
push edx
push str.core.bin
mov edi, 0x440000
call fcn.005394e0
add esp, 8
test al, al
push str.core.bin
je 0x4c7a39
push str.saved__s
jmp 0x4c7a3e
push str.error_writing__s
xor al, al
call fcn.004c6840
add esp, 8
mov byte [0x719679], bl
cmp byte [0x71967a], bl
je 0x4c7a69
push str.core.bin
call fcn.00538580
add esp, 4
mov byte [0x71967a], bl
cmp byte [0x71967f], bl
je 0x4c7a76
call fcn.004c8aa0
cmp byte [0x719680], bl
je 0x4c7a84
mov byte [0x719680], bl
cmp byte [0x719694], bl
je 0x4c7a91
call fcn.004c9a20
cmp byte [0x71969c], bl
je 0x4c7ad1
cmp byte [0x6ac398], bl
je 0x4c7abd
lea eax, [esp + 0x20]
call fcn.004435c0
cmp ax, 1
jne 0x4c7ab5
call fcn.00443660
cmp byte [0x6ac398], bl
jne 0x4c7ad1
push ebx
mov eax, 0x7198a1
call fcn.00443480
add esp, 4
mov byte [0x71969c], bl
cmp byte [0x7199a1], bl
je 0x4c7ade
call fcn.004c86f0
movsx ebp, word [0x719648]
call fcn.00490860
cmp dword [0x719600], ebx
jne 0x4c7af7
call fcn.0048b500
call fcn.00541da0
cmp byte [0x719683], bl
jne 0x4c83a8
cmp byte [0x712be8], bl
je 0x4c7b7b
mov esi, dword [0x712bf0]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ebx
push 0x3e8
push ecx
push edx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov dword [0x712bf0], eax
cmp dword [0x712bec], esi
jae 0x4c7b7b
cmp byte [0x712be8], bl
je 0x4c7b7b
xor edx, edx
mov dword [esp + 0x2a], edx
xor eax, eax
lea edi, [esp + 0x28]
mov word [esp + 0x28], bx
mov word [esp + 0x2e], dx
call fcn.00492430
cmp ebp, 2
jne 0x4c7b93
call fcn.00577d50
cmp dword [0x69fe0c], 0xffffffff
je 0x4c7b93
call fcn.0061bb10
call fcn.004418c0
cmp ebp, 1
je 0x4c7bc7
cmp ebp, 2
je 0x4c7bc7
cmp byte [0x718ef1], 1
jne 0x4c7bf7
mov eax, dword [0x718ebc]
cmp eax, ebx
je 0x4c7bf7
mov esi, dword [eax + 4]
mov edi, str.the_main_menu
mov ecx, 0xe
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4c7bf7
mov eax, dword [0x6894b0]
cmp dword [0x719c10], eax
je 0x4c7be3
mov esi, 0x719c08
mov dword [0x719c10], eax
call fcn.004d80c0
mov eax, 0x719c08
call fcn.004d8510
mov esi, 0x719c08
call fcn.004d8580
cmp byte [0x721db4], bl
je 0x4c7c0d
cmp ebp, 1
je 0x4c7c0d
cmp ebp, 2
jne 0x4c82ac
cmp ebp, 1
mov byte [esp + 0x17], 1
jne 0x4c7c76
call fcn.004ddf50
test al, al
jne 0x4c7cc7
mov ecx, dword [0x71c200]
cmp word [ecx + 0xedc], 8
jne 0x4c7c55
cmp word [0x718ecc], 0xffff
jne 0x4c7c68
mov word [0x718ecc], 4
mov byte [0x71c206], 1
call fcn.004aa9d0
jmp 0x4c7cc7
cmp word [0x718ecc], 0xffff
jne 0x4c7c68
mov word [0x718ecc], 6
mov byte [0x71c206], 1
call fcn.004aa9d0
jmp 0x4c7cc7
cmp ebp, 2
jne 0x4c7cbe
mov edx, dword [0x71c1fc]
mov al, byte [edx + 6]
shr al, 2
test al, 1
jne 0x4c7c94
call fcn.004ddf50
cmp al, 1
jne 0x4c7c9d
call fcn.004dde10
cmp al, 1
je 0x4c7cc7
cmp word [0x718ecc], 0xffff
jne 0x4c7cb0
mov word [0x718ecc], 1
mov byte [0x71c206], 1
call fcn.004aa9d0
jmp 0x4c7cc7
cmp ebp, 3
je 0x4c83a8
call fcn.004c9fd0
call fcn.004973a0
call fcn.00497f30
cmp byte [0x712468], bl
je 0x4c7e36
cmp byte [0x6b6f48], bl
jne 0x4c7e36
mov eax, dword [0x6f1c94]
cmp byte [eax], bl
je 0x4c7d15
cmp byte [eax + 1], bl
jne 0x4c7d01
cmp byte [eax + 2], bl
je 0x4c7d15
cmp byte [eax + 2], bl
jne 0x4c7d15
mov ecx, dword [0x6f17a4]
cmp byte [ecx + 9], bl
jne 0x4c7dfa
cmp dword [0x719684], ebx
jle 0x4c7e75
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea edx, [esp + 0x38]
push edx
call edi
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push 0x3e8
push eax
push ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov esi, dword [0x719684]
mov edx, dword [0x71968c]
sub esi, eax
add esi, edx
lea edx, [esp + 0x40]
push edx
call edi
cmp esi, ebx
jg 0x4c7e70
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebx
push 0x3e8
push eax
push ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov edx, dword [0x719688]
sub edx, eax
add edx, 0x2710
test edx, edx
jg 0x4c7e70
cmp byte [0x718ef1], bl
je 0x4c7ddd
mov byte [0x71967f], bl
mov byte [0x719681], 1
mov byte [0x719661], 1
call fcn.00449380
jmp 0x4c7e6b
mov word [0x71967c], 0xffff
mov byte [0x719664], bl
mov byte [0x71967f], 1
call fcn.00449380
jmp 0x4c7e6b
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ebx
push 0x3e8
push ecx
push edx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov dword [0x719688], eax
jmp 0x4c7e70
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push ebx
push 0x3e8
push eax
push ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov dword [0x71968c], eax
mov eax, dword [0x6f1c94]
cmp byte [eax], bl
je 0x4c825a
cmp byte [eax + 1], bl
jne 0x4c7e8b
cmp byte [eax + 2], bl
je 0x4c825a
cmp byte [0x6b2e24], bl
je 0x4c7eaf
call fcn.00496d60
call fcn.004966c0
cmp byte [0x6b6f48], bl
jne 0x4c7eaa
call fcn.004967c0
call fcn.00496e20
call fcn.004c6640
test al, al
je 0x4c7ec5
cmp word [0x719648], bx
je 0x4c8114
movzx edx, byte [0x719691]
mov dword [esp + 0x20], edx
mov ebp, 1
fild dword [esp + 0x20]
push ebp
fmul dword [0x719644]
fstp dword [esp + 0x24]
mov edi, dword [esp + 0x24]
push edi
call fcn.00470d30
mov esi, eax
xor eax, eax
mov dword [0x6f7dcc], eax
mov dword [0x6f7dd0], eax
mov dword [0x6f7dd4], eax
mov dword [0x6f7dd8], eax
mov dword [0x6f7ddc], eax
push esi
mov dword [0x6f7de0], eax
mov dword [0x6f7de4], eax
push edi
push ebx
mov dword [0x6f7df4], ebx
mov dword [0x6f7de8], eax
mov dword [0x6f7dec], esi
call fcn.00471ce0
movsx eax, word [0x719648]
add esp, 0x14
dec eax
je 0x4c7f4f
dec eax
jne 0x4c7f8a
mov ecx, dword [0x71c1fc]
mov dl, byte [ecx + 6]
shr dl, 2
test dl, 1
jne 0x4c7f8a
call fcn.004aab60
xor eax, eax
mov al, byte [0x719640]
push eax
push esi
call fcn.004de030
add esp, 8
test al, al
jne 0x4c7f8a
or esi, 0xffffffff
cmp word [0x718ecc], si
jne 0x4c7f7c
mov word [0x718ecc], bp
mov byte [0x71c206], 1
call fcn.004aa9d0
jmp 0x4c7f8d
or esi, 0xffffffff
push edi
call fcn.00470df0
add esp, 4
cmp word [0x719648], bp
jne 0x4c808e
cmp dword [0x710238], ebx
je 0x4c808e
mov eax, dword [0x87a020]
mov dword [esp + 0x78], eax
xor eax, 0x69746572
lea edi, [esp + 0x78]
mov word [esp + 0x7c], bx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], eax
call fcn.004d0610
cmp eax, ebx
je 0x4c808e
cmp word [eax + 2], si
jne 0x4c7ff9
lea edi, [esp + 0x78]
call fcn.004d0610
cmp eax, ebx
jne 0x4c7fe1
jmp 0x4c808e
mov eax, dword [eax + 0x34]
cmp eax, esi
je 0x4c808e
mov ecx, dword [0x71c200]
mov ecx, dword [ecx + 0xf48]
cmp ecx, ebx
je 0x4c808e
cmp dword [ecx + 8], ebx
je 0x4c808e
mov ecx, dword [ecx + 8]
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [0x85ff50]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + edx*4 + 8]
fld dword [eax + 0x6c]
mov edx, dword [ecx + 4]
sub esp, 0x38
fstp qword [esp + 0x30]
fld dword [eax + 0x68]
fstp qword [esp + 0x28]
fld dword [eax + 0x27c]
fstp qword [esp + 0x20]
fld dword [eax + 0x278]
fstp qword [esp + 0x18]
fld dword [eax + 0x64]
fstp qword [esp + 0x10]
fld dword [eax + 0x60]
fstp qword [esp + 8]
fld dword [eax + 0x5c]
mov eax, dword [ecx]
mov ecx, dword [0x6f1c94]
fstp qword [esp]
push edx
mov edx, dword [ecx + 0xc]
push eax
push edx
push str.__d_:_Update___d_____d__:____f____f____f_______f____f_______f____f___n
mov eax, 0x10
xor ecx, ecx
call fcn.004e6050
add esp, 0x48
cmp byte [0x721db4], bl
mov al, byte [0x719691]
mov byte [esp + 0x17], bl
jne 0x4c80b0
cmp byte [0x71967e], bl
jne 0x4c80ab
cmp al, bl
je 0x4c80b0
mov byte [esp + 0x17], 1
movzx eax, al
mov dword [esp + 0x20], eax
push ecx
fild dword [esp + 0x24]
fmul dword [0x719644]
fstp dword [esp]
call fcn.00445720
add esp, 4
call fcn.004456d0
movzx ecx, byte [0x719691]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
push eax
fmul dword [0x719644]
push ecx
fstp dword [esp]
call fcn.004479a0
movzx edx, byte [0x719691]
mov dword [esp + 0x28], edx
add esp, 4
fild dword [esp + 0x24]
fmul dword [0x719644]
fstp dword [esp]
call fcn.0045ff90
add esp, 4
cmp byte [0x719664], bl
je 0x4c8121
call fcn.004c9ab0
mov eax, dword [0x6894bc]
cmp eax, 0xffffffff
je 0x4c8144
cmp eax, 0x14
jg 0x4c813a
mov eax, 0x14
mov dword [0x6894bc], eax
cmp dword [esp + 0x24], eax
jb 0x4c8144
mov byte [esp + 0x17], bl
cmp dword [0x719600], ebx
je 0x4c816c
mov eax, dword [0x6f1c94]
mov eax, dword [eax + 0xc]
cmp eax, dword [0x719a88]
je 0x4c82ac
mov dword [0x719a88], eax
call fcn.004c6fb0
jmp 0x4c8176
cmp byte [esp + 0x17], bl
je 0x4c827e
cmp byte [0x7199d0], bl
jne 0x4c82ac
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x6f1c94]
cmp byte [eax + 2], bl
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
jne 0x4c822a
cmp byte [0x6b6f48], bl
jne 0x4c822a
mov edx, dword [eax + 0x1c]
mov ebp, dword [0x719638]
mov eax, edi
sub eax, ebp
mov dword [esp + 0x1c], edx
mov edx, dword [0x71963c]
mov ecx, esi
sbb ecx, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
fild qword [esp + 0x60]
mov eax, dword [0x719600]
cmp eax, ebx
fild qword [0x6ac820]
fdivp st(1)
fst dword [esp + 0x18]
je 0x4c81f3
fstp st(0)
fld dword [0x672b04]
fst dword [esp + 0x18]
cmp word [0x719648], bx
jne 0x4c8213
fcomp dword [0x672b04]
fnstsw ax
test ah, 0x41
jne 0x4c823a
mov dword [esp + 0x18], 0x3d088889
jmp 0x4c823a
fcomp dword [0x672afc]
fnstsw ax
test ah, 0x41
jne 0x4c823a
mov dword [esp + 0x18], 0x3f800000
jmp 0x4c823a
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
call fcn.004c92a0
add esp, 8
mov dword [0x719638], edi
mov dword [0x71963c], esi
jmp 0x4c826f
cmp dword [0x719600], ebx
jne 0x4c826f
cmp byte [0x721db4], bl
jne 0x4c826f
call fcn.004c8f60
cmp byte [0x7199d0], bl
jne 0x4c82ac
call fcn.004c9570
jmp 0x4c82ac
mov esi, dword [0x69c658]
mov edx, dword [0x69c65c]
add esi, 1
adc edx, ebx
push 1
mov ebx, 0x7c2c40
mov dword [0x69c658], esi
mov dword [0x69c65c], edx
call fcn.005126d0
add esp, 4
xor ebx, ebx
cmp byte [0x719683], bl
jne 0x4c83a8
cmp byte [0x719692], bl
je 0x4c831d
lea ecx, [esp + 0x68]
push ecx
mov byte [0x719692], bl
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push ebx
push 0x3e8
push ecx
push eax
mov dword [0x719628], eax
mov dword [0x71962c], ecx
mov dword [0x719638], eax
mov dword [0x71963c], ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
mov dword [0x719630], eax
mov byte [0x719691], 1
cmp byte [0x721db4], bl
je 0x4c834e
movsx eax, word [0x719648]
cmp eax, ebx
jle 0x4c833e
cmp eax, 2
jg 0x4c833e
push 0xff
push 0x14
jmp 0x4c8345
push 0xff
push 0x64
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
push ebx
push 0x3e8
push eax
push ecx
call fcn.0062e0c0
mov ecx, dword [0x6ac824]
push ecx
mov ecx, dword [0x6ac820]
push ecx
push edx
push eax
call fcn.00639340
sub eax, dword [0x7199d8]
cmp eax, 0xc8
mov dword [0x7199e0], eax
jbe 0x4c7802
mov dword [0x7199e0], 0xc8
jmp 0x4c7802
call fcn.004c9ed0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret