Function at 0x4c59e0
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 0x70b4b9
call fcn.0061f130
add esp, 0xc
lea ecx, [esp + 0x28]
xor ebx, ebx
push ecx
mov byte [0x70b5b8], bl
mov byte [0x70b497], 1
mov word [0x70b494], 0xffff
mov byte [0x70b4a9], 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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [0x70b4a4], eax
call fcn.004c4750
call fcn.004d5cc0
call fcn.004a8c40
call fcn.0045aa40
call fcn.004c4810
call fcn.004c8110
call fcn.004c8270
mov esi, 0x68845c
mov edx, dword [esi - 4]
mov eax, dword [esi]
push edx
push eax
call fcn.00493700
add esi, 0xc
add esp, 8
cmp esi, 0x688540
jl 0x4c5a90
call fcn.004e0e00
mov dword [0x6b1c48], 8
mov dword [0x6b1c4c], ebx
mov dword [0x6b1c50], ebx
call fcn.004c7fc0
cmp dword [0x70b418], ebx
mov cl, byte [0x70b424]
mov byte [0x716eb6], cl
jne 0x4c5b1d
cmp dword [0x70b428], ebx
jne 0x4c5b1d
cmp dword [0x70b434], ebx
jne 0x4c5b1d
cmp dword [0x70edd4], ebx
jne 0x4c5b1d
push str.bungie.bik
call fcn.0043ed30
add esp, 4
push str.gearbox.bik
call fcn.0043ed30
add esp, 4
push str.mgs.bik
call fcn.0043ed30
add esp, 4
mov byte [0x690360], bl
call fcn.004c52e0
mov dword [esp + 0x24], eax
cmp dword [0x70edd0], ebx
je 0x4c5b43
mov dword [esp + 0x20], 0x7e
wait
fninit
fldcw word [esp + 0x20]
cmp word [0x70b494], 0xffff
je 0x4c5b52
call fcn.004c7ea0
cmp byte [0x70b48f], bl
je 0x4c5b8e
mov edx, dword [0x6eb40c]
cmp byte [edx + 2], bl
jne 0x4c5b8e
mov ax, word [0x70b4b0]
mov cx, ax
inc ax
cmp cx, 0x5a
mov word [0x70b4b0], ax
jle 0x4c5b8e
mov byte [0x70b48f], bl
mov word [0x70b4b0], bx
call fcn.00533a90
cmp byte [0x70b48e], bl
je 0x4c5b9b
call fcn.004c7f10
cmp byte [0x70b490], bl
je 0x4c5be5
mov edx, dword [0x6eb40c]
cmp byte [edx + 2], bl
jne 0x4c5be5
mov eax, dword [0x6eaf1c]
cmp byte [eax + 9], bl
jne 0x4c5be5
mov ax, word [0x70b4b2]
mov cx, ax
inc ax
cmp cx, 0x5a
mov word [0x70b4b2], ax
jle 0x4c5be5
call fcn.00472ce0
test al, al
je 0x4c5be5
mov byte [0x70b490], bl
mov word [0x70b4b2], bx
cmp byte [0x70b47f], bl
je 0x4c5c28
call dword [0x69805c]
push 1
mov byte [0x70b4a9], bl
mov byte [0x70b4aa], bl
call fcn.00533f30
add esp, 4
test al, al
setne dl
mov byte [0x6dc479], dl
xor dl, dl
mov byte [0x70b4aa], 1
call fcn.004a8880
mov byte [0x70b47f], bl
cmp byte [0x70b479], bl
je 0x4c5c35
call fcn.004c7ac0
cmp byte [0x70b47a], bl
je 0x4c5c55
call fcn.00533a90
mov edi, 0x1e
mov dword [0x70ae40], edi
mov byte [0x70b47a], bl
jmp 0x4c5c5a
mov edi, 0x1e
cmp byte [0x70b47b], bl
je 0x4c5c8b
cmp byte [0x6dc6a0], bl
jne 0x4c5c85
mov eax, dword [0x6eaf1c]
cmp byte [eax + 0xa], bl
je 0x4c5c85
call fcn.00533a90
mov dword [0x70ae40], edi
mov byte [0x70b47a], bl
mov byte [0x70b47b], bl
cmp byte [0x70b478], bl
je 0x4c5d1d
mov ecx, dword [0x6eb40c]
cmp byte [ecx + 2], bl
jne 0x4c5d1d
xor esi, esi
call fcn.0053a6e0
call fcn.0045b3f0
call fcn.0048f130
xor eax, eax
mov dword [0x704338], eax
mov dword [0x70433c], eax
mov dword [0x704340], eax
mov dword [0x704344], eax
mov dword [0x704348], eax
mov dword [0x70434c], eax
mov dword [0x704350], eax
xor edx, edx
mov dword [0x704354], eax
mov word [0x704670], dx
mov dword [0x704358], eax
mov byte [0x7043e0], 1
mov byte [0x704672], dl
mov dword [0x70435c], eax
call fcn.0045b0d0
call fcn.004c6b90
call fcn.0046faa0
call fcn.0045b960
mov dword [0x70ae40], edi
mov byte [0x70b478], bl
cmp byte [0x70b491], bl
je 0x4c5d63
mov ecx, dword [0x6dc468]
push ecx
push str.core.bin
mov edi, 0x440000
call fcn.00534c00
add esp, 8
test al, al
push str.core.bin
je 0x4c5d4e
push str.saved__s
jmp 0x4c5d53
push str.error_writing__s
xor al, al
call fcn.004c4c40
add esp, 8
mov byte [0x70b491], bl
cmp byte [0x70b492], bl
je 0x4c5d7e
push str.core.bin
call fcn.00533ca0
add esp, 4
mov byte [0x70b492], bl
cmp byte [0x70b497], bl
je 0x4c5d8b
call fcn.004c6db0
cmp byte [0x70b498], bl
je 0x4c5d99
mov byte [0x70b498], bl
cmp byte [0x70b4ac], bl
je 0x4c5da6
call fcn.004c7d30
cmp byte [0x70b4b4], bl
je 0x4c5de6
cmp byte [0x6a5c18], bl
je 0x4c5dd2
lea eax, [esp + 0x20]
call fcn.004435e0
cmp ax, 1
jne 0x4c5dca
call fcn.00443680
cmp byte [0x6a5c18], bl
jne 0x4c5de6
push ebx
mov eax, 0x70b6b9
call fcn.004434a0
add esp, 4
mov byte [0x70b4b4], bl
cmp byte [0x70b7b9], bl
je 0x4c5df3
call fcn.004c6a00
movsx ebp, word [0x70b460]
call fcn.0048edf0
cmp dword [0x70b418], ebx
jne 0x4c5e0c
call fcn.00489a90
call fcn.0053d490
cmp byte [0x70b49b], bl
jne 0x4c66c1
cmp byte [0x704b60], bl
je 0x4c5e90
mov esi, dword [0x704b68]
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push ebx
push 0x3e8
push eax
push ecx
call fcn.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [0x704b68], eax
cmp dword [0x704b64], esi
jae 0x4c5e90
cmp byte [0x704b60], bl
je 0x4c5e90
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.004909c0
cmp ebp, 2
jne 0x4c5ea8
call fcn.00573200
cmp dword [0x69968c], 0xffffffff
je 0x4c5ea8
call fcn.00616f80
call fcn.004418e0
cmp ebp, 1
je 0x4c5edc
cmp ebp, 2
je 0x4c5edc
cmp byte [0x70ae69], 1
jne 0x4c5f0c
mov eax, dword [0x70ae34]
cmp eax, ebx
je 0x4c5f0c
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 0x4c5f0c
mov eax, dword [0x6833d8]
cmp dword [0x70ba30], eax
je 0x4c5ef8
mov esi, 0x70ba28
mov dword [0x70ba30], eax
call fcn.004d63c0
mov eax, 0x70ba28
call fcn.004d6810
mov esi, 0x70ba28
call fcn.004d6880
cmp byte [0x713abc], bl
je 0x4c5f22
cmp ebp, 1
je 0x4c5f22
cmp ebp, 2
jne 0x4c65c5
cmp ebp, 1
mov byte [esp + 0x17], 1
jne 0x4c5f8b
call fcn.004dbda0
test al, al
jne 0x4c5fdc
mov ecx, dword [0x70e020]
cmp word [ecx + 0xb1c], 8
jne 0x4c5f6a
cmp word [0x70ae44], 0xffff
jne 0x4c5f7d
mov word [0x70ae44], 4
mov byte [0x70e026], 1
call fcn.004a8e90
jmp 0x4c5fdc
cmp word [0x70ae44], 0xffff
jne 0x4c5f7d
mov word [0x70ae44], 6
mov byte [0x70e026], 1
call fcn.004a8e90
jmp 0x4c5fdc
cmp ebp, 2
jne 0x4c5fd3
mov edx, dword [0x70e01c]
mov al, byte [edx + 6]
shr al, 2
test al, 1
jne 0x4c5fa9
call fcn.004dbda0
cmp al, 1
jne 0x4c5fb2
call fcn.004dbc60
cmp al, 1
je 0x4c5fdc
cmp word [0x70ae44], 0xffff
jne 0x4c5fc5
mov word [0x70ae44], 1
mov byte [0x70e026], 1
call fcn.004a8e90
jmp 0x4c5fdc
cmp ebp, 3
je 0x4c66c1
call fcn.004c82d0
call fcn.00495860
call fcn.004963f0
cmp byte [0x7043e0], bl
je 0x4c614b
cmp byte [0x6b06c0], bl
jne 0x4c614b
mov eax, dword [0x6eb40c]
cmp byte [eax], bl
je 0x4c602a
cmp byte [eax + 1], bl
jne 0x4c6016
cmp byte [eax + 2], bl
je 0x4c602a
cmp byte [eax + 2], bl
jne 0x4c602a
mov ecx, dword [0x6eaf1c]
cmp byte [ecx + 9], bl
jne 0x4c610f
cmp dword [0x70b49c], ebx
jle 0x4c618a
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov esi, dword [0x70b49c]
mov edx, dword [0x70b4a4]
sub esi, eax
add esi, edx
lea edx, [esp + 0x40]
push edx
call edi
cmp esi, ebx
jg 0x4c6185
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebx
push 0x3e8
push eax
push ecx
call fcn.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov edx, dword [0x70b4a0]
sub edx, eax
add edx, 0x2710
test edx, edx
jg 0x4c6185
cmp byte [0x70ae69], bl
je 0x4c60f2
mov byte [0x70b497], bl
mov byte [0x70b499], 1
mov byte [0x70b479], 1
call fcn.00449300
jmp 0x4c6180
mov word [0x70b494], 0xffff
mov byte [0x70b47c], bl
mov byte [0x70b497], 1
call fcn.00449300
jmp 0x4c6180
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [0x70b4a0], eax
jmp 0x4c6185
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [0x70b4a4], eax
mov eax, dword [0x6eb40c]
cmp byte [eax], bl
je 0x4c6573
cmp byte [eax + 1], bl
jne 0x4c61a0
cmp byte [eax + 2], bl
je 0x4c6573
cmp byte [0x6ac6a4], bl
je 0x4c61c4
call fcn.00495250
call fcn.00494bc0
cmp byte [0x6b06c0], bl
jne 0x4c61bf
call fcn.00494cc0
call fcn.00495310
call fcn.004c4a40
test al, al
je 0x4c61da
cmp word [0x70b460], bx
je 0x4c6429
movzx edx, byte [0x70b4a9]
mov dword [esp + 0x20], edx
mov ebp, 1
fild dword [esp + 0x20]
push ebp
fmul dword [0x70b45c]
fstp dword [esp + 0x24]
mov edi, dword [esp + 0x24]
push edi
call fcn.0046faf0
mov esi, eax
xor eax, eax
mov dword [0x6efd44], eax
mov dword [0x6efd48], eax
mov dword [0x6efd4c], eax
mov dword [0x6efd50], eax
mov dword [0x6efd54], eax
push esi
mov dword [0x6efd58], eax
mov dword [0x6efd5c], eax
push edi
push ebx
mov dword [0x6efd6c], ebx
mov dword [0x6efd60], eax
mov dword [0x6efd64], esi
call fcn.00470aa0
movsx eax, word [0x70b460]
add esp, 0x14
dec eax
je 0x4c6264
dec eax
jne 0x4c629f
mov ecx, dword [0x70e01c]
mov dl, byte [ecx + 6]
shr dl, 2
test dl, 1
jne 0x4c629f
call fcn.004a9020
xor eax, eax
mov al, byte [0x70b458]
push eax
push esi
call fcn.004dbe80
add esp, 8
test al, al
jne 0x4c629f
or esi, 0xffffffff
cmp word [0x70ae44], si
jne 0x4c6291
mov word [0x70ae44], bp
mov byte [0x70e026], 1
call fcn.004a8e90
jmp 0x4c62a2
or esi, 0xffffffff
push edi
call fcn.0046fbb0
add esp, 4
cmp word [0x70b460], bp
jne 0x4c63a3
cmp dword [0x7021b0], ebx
je 0x4c63a3
mov eax, dword [0x86b840]
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.004ce910
cmp eax, ebx
je 0x4c63a3
cmp word [eax + 2], si
jne 0x4c630e
lea edi, [esp + 0x78]
call fcn.004ce910
cmp eax, ebx
jne 0x4c62f6
jmp 0x4c63a3
mov eax, dword [eax + 0x34]
cmp eax, esi
je 0x4c63a3
mov ecx, dword [0x70e020]
mov ecx, dword [ecx + 0xb84]
cmp ecx, ebx
je 0x4c63a3
cmp dword [ecx + 8], ebx
je 0x4c63a3
mov ecx, dword [ecx + 8]
and eax, 0xffff
lea edx, [eax + eax*2]
mov eax, dword [0x851c30]
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 [0x6eb40c]
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.004e2440
add esp, 0x48
cmp byte [0x713abc], bl
mov al, byte [0x70b4a9]
mov byte [esp + 0x17], bl
jne 0x4c63c5
cmp byte [0x70b496], bl
jne 0x4c63c0
cmp al, bl
je 0x4c63c5
mov byte [esp + 0x17], 1
movzx eax, al
mov dword [esp + 0x20], eax
push ecx
fild dword [esp + 0x24]
fmul dword [0x70b45c]
fstp dword [esp]
call fcn.004456a0
add esp, 4
call fcn.00445650
movzx ecx, byte [0x70b4a9]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
push eax
fmul dword [0x70b45c]
push ecx
fstp dword [esp]
call fcn.00447920
movzx edx, byte [0x70b4a9]
mov dword [esp + 0x28], edx
add esp, 4
fild dword [esp + 0x24]
fmul dword [0x70b45c]
fstp dword [esp]
call fcn.0045fdd0
add esp, 4
cmp byte [0x70b47c], bl
je 0x4c6436
call fcn.004c7dc0
mov eax, dword [0x6833e4]
cmp eax, 0xffffffff
je 0x4c6459
cmp eax, 0x14
jg 0x4c644f
mov eax, 0x14
mov dword [0x6833e4], eax
cmp dword [esp + 0x24], eax
jb 0x4c6459
mov byte [esp + 0x17], bl
cmp dword [0x70b418], ebx
je 0x4c6481
mov eax, dword [0x6eb40c]
mov eax, dword [eax + 0xc]
cmp eax, dword [0x70b8a4]
je 0x4c65c5
mov dword [0x70b8a4], eax
call fcn.004c53e0
jmp 0x4c648b
cmp byte [esp + 0x17], bl
je 0x4c6597
cmp byte [0x70b7e8], bl
jne 0x4c65c5
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [0x6eb40c]
cmp byte [eax + 2], bl
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x58]
jne 0x4c6543
cmp byte [0x6b06c0], bl
jne 0x4c6543
mov edx, dword [eax + 0x1c]
mov ebp, dword [0x70b450]
mov eax, edi
sub eax, ebp
mov dword [esp + 0x1c], edx
mov edx, dword [0x70b454]
mov ecx, esi
sbb ecx, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
fild qword [esp + 0x60]
mov eax, dword [0x70b418]
cmp eax, ebx
fild qword [0x6a60a0]
fdivp st(1)
fst dword [esp + 0x18]
je 0x4c650c
fstp st(0)
fld dword [0x66c418]
fst dword [esp + 0x18]
cmp word [0x70b460], bx
jne 0x4c652c
fcomp dword [0x66c418]
fnstsw ax
test ah, 0x41
jne 0x4c6553
mov dword [esp + 0x18], 0x3d088889
jmp 0x4c6553
fcomp dword [0x66c410]
fnstsw ax
test ah, 0x41
jne 0x4c6553
mov dword [esp + 0x18], 0x3f800000
jmp 0x4c6553
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.004c75b0
add esp, 8
mov dword [0x70b450], edi
mov dword [0x70b454], esi
jmp 0x4c6588
cmp dword [0x70b418], ebx
jne 0x4c6588
cmp byte [0x713abc], bl
jne 0x4c6588
call fcn.004c7270
cmp byte [0x70b7e8], bl
jne 0x4c65c5
call fcn.004c7880
jmp 0x4c65c5
mov esi, dword [0x695ef8]
mov edx, dword [0x695efc]
add esi, 1
adc edx, ebx
push 1
mov ebx, 0x7b4920
mov dword [0x695ef8], esi
mov dword [0x695efc], edx
call fcn.0050e130
add esp, 4
xor ebx, ebx
cmp byte [0x70b49b], bl
jne 0x4c66c1
cmp byte [0x70b4aa], bl
je 0x4c6636
lea ecx, [esp + 0x68]
push ecx
mov byte [0x70b4aa], 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 [0x70b440], eax
mov dword [0x70b444], ecx
mov dword [0x70b450], eax
mov dword [0x70b454], ecx
call fcn.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
mov dword [0x70b448], eax
mov byte [0x70b4a9], 1
cmp byte [0x713abc], bl
je 0x4c6667
movsx eax, word [0x70b460]
cmp eax, ebx
jle 0x4c6657
cmp eax, 2
jg 0x4c6657
push 0xff
push 0x14
jmp 0x4c665e
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.006292c0
mov ecx, dword [0x6a60a4]
push ecx
mov ecx, dword [0x6a60a0]
push ecx
push edx
push eax
call fcn.00634420
sub eax, dword [0x70b7f0]
cmp eax, 0xc8
mov dword [0x70b7f8], eax
jbe 0x4c5b23
mov dword [0x70b7f8], 0xc8
jmp 0x4c5b23
call fcn.004c81d0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret