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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x5c4e68]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
push edi
mov dword [esp + 0x18], eax
xor eax, eax
mov esi, 0x103
lea edi, [esp + 0xf1]
push esi
mov byte [esp + 0xf4], bl
stosd dword es:[edi], eax
lea eax, [esp + 0xfd]
push ebx
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov byte [esp + 0x104], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [esp + 0x205]
push ebx
push eax
mov byte [esp + 0x20c], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [esp + 0x30d]
push ebx
push eax
mov byte [esp + 0x314], bl
call fcn.005117f0
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], bx
stosw word es:[edi], ax
lea edi, [esp + 0x46]
add esp, 0xc
mov word [esp + 0x38], bx
xor ecx, ecx
stosw word es:[edi], ax
call fcn.004d4239
mov dword [esp + 0x48], eax
xor eax, eax
cmp dword [esp + 0x18], ebx
je 0x4d4b3b
call fcn.004d40f6
lea ebx, [esp + 0x3c]
lea esi, [esp + 0x40]
call fcn.004128bf
call fcn.00412dab
mov dword [esp + 0x4c], eax
call fcn.00412e09
call fcn.0042ce8f
mov edx, eax
call fcn.004c3b34
test eax, eax
jne 0x4d438d
push str.Counting_ArchiveRaw_Data_
call fcn.0042ce8f
push eax
push 0x533dd4
mov esi, 0x104
lea eax, [esp + 0x314]
push esi
push eax
call fcn.004c53b7
mov edi, dword [esp + 0x2c]
add esp, 0x14
cmp dword [edi + 0x6c8a0], 0
je 0x4d439d
push str.Z:INVALID_STORE_UP_PATH_
lea eax, [esp + 0x30c]
push esi
push eax
call fcn.004c53b7
add esp, 0xc
jmp 0x4d439d
lea eax, [esp + 0x308]
call fcn.004c3ab2
mov edi, dword [esp + 0x18]
push dword [esp + 0x2c]
call fcn.004130aa
pop ecx
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.005123e0
pop ecx
pop ecx
call fcn.00415b26
test eax, eax
mov ebx, dword [ebp + 0xc]
je 0x4d43d7
push str.Waiting_for_till_sheet_access...
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.0041461b
add esp, 0xc
call fcn.0048a51a
test eax, eax
je 0x4d4408
call fcn.004f16be
mov dword [esp + 0x1c], eax
call fcn.0048a508
test eax, eax
jne 0x4d445f
push 0x7f3
push str..TillSheet.c
push 0x11
call fcn.00469252
add esp, 0xc
jmp 0x4d445f
call fcn.0048a508
test eax, eax
jne 0x4d4425
push 0x7f5
push str..TillSheet.c
push 1
call fcn.00469252
add esp, 0xc
call fcn.00415b26
test eax, eax
je 0x4d4442
push str.Waiting_for_till_sheet_lock...
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.0041461b
add esp, 0xc
push 0x7f9
push str..TillSheet.c
push 1
call fcn.0046c07a
add esp, 0xc
call fcn.004f16be
mov dword [esp + 0x1c], eax
call fcn.0048a51a
test eax, eax
je 0x4d4471
call fcn.004f16be
mov dword [esp + 0x10], eax
call fcn.00415b26
test eax, eax
je 0x4d448e
push 0x59d58c
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.0041461b
add esp, 0xc
push str._n_nLoading_Till_Sheets...
call fcn.00414d11
mov eax, dword [edi]
and dword [esp + 0x18], 0
pop ecx
lea ecx, [eax + 2]
test ecx, ecx
jle 0x4d4a07
cmp dword [esp + 0x14], eax
jl 0x4d44b8
sub eax, dword [esp + 0x14]
dec eax
jmp 0x4d44bc
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x4d44d2
mov ecx, dword [esp + 0x48]
cmp dword [edi + eax*4 + 4], ecx
je 0x4d49f4
lea ecx, [esp + 0xf8]
mov ebx, edi
call fcn.004d699d
lea esi, [esp + 0xf8]
call fcn.004c3e68
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046021a
add esp, 0x10
lea ecx, [esp + 0xf8]
mov dword [esp + 0x44], eax
call fcn.004c3aba
call fcn.00415b26
test eax, eax
je 0x4d4538
lea eax, [esp + 0xf8]
push eax
mov eax, dword [ebp + 0xc]
push 0x5304c0
add eax, 2
push eax
push dword [ebp + 8]
call fcn.0041461b
add esp, 0x10
call fcn.0048a51a
test eax, eax
je 0x4d4569
call fcn.00415e85
test eax, eax
jne 0x4d4569
push dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0xfc]
call fcn.004d6a09
xor ebx, ebx
mov byte [esp + 0x204], bl
jmp 0x4d458f
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0xf8]
call fcn.004d699d
push dword [esp + 0x20]
lea eax, [esp + 0x204]
call fcn.004d6a09
xor ebx, ebx
pop ecx
call fcn.0048a51a
test eax, eax
jne 0x4d45da
call fcn.004f16be
sub eax, dword [esp + 0x1c]
cmp eax, 0x1388
jb 0x4d45da
push 1
call fcn.0046cf18
mov dword [esp], 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x827
push str..TillSheet.c
push 1
call fcn.0046c07a
add esp, 0xc
call fcn.004f16be
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x308]
call fcn.004c3b34
test eax, eax
jne 0x4d46a2
call fcn.004f16be
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x38]
push eax
push esi
push edi
lea ecx, [esp + 0x314]
call fcn.004d385e
add dword [esp + 0x30], eax
add esp, 0xc
call fcn.0048a51a
test eax, eax
jne 0x4d463a
jmp 0x4d462c
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, 0x19
jb 0x4d4624
lea eax, [edi + esi*4 + 0x4f4]
mov ecx, dword [eax]
cmp ecx, ebx
je 0x4d499d
cmp dword [ecx + 8], ebx
jle 0x4d499d
mov eax, ecx
mov ecx, dword [eax + 8]
imul ecx, ecx, 0x1234
sub esp, 0x10
lea esi, [ecx + eax - 0x1218]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
mov esi, eax
push esi
push dword [esp + 0x44]
call fcn.004f08dd
add esp, 0x18
test eax, eax
je 0x4d499d
push 0xffffffffffffffb8
push esi
mov dword [esp + 0x38], esi
call fcn.004f0abc
pop ecx
pop ecx
mov dword [esp + 0x38], eax
jmp 0x4d499d
call fcn.0048a51a
test eax, eax
jne 0x4d46b4
call fcn.004f16be
mov dword [esp + 0x10], eax
lea eax, [esp + 0xf8]
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.004d28a6
add esp, 0xc
cmp byte [esp + 0x200], bl
mov dword [esp + 0x28], eax
je 0x4d47df
call fcn.00415e85
test eax, eax
je 0x4d47df
lea eax, [esp + 0xf8]
push eax
lea esi, [esp + 0x94]
call fcn.0042b849
mov esi, eax
lea edi, [esp + 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [esp + 0x200]
movsd dword es:[edi], dword [esi]
push eax
lea esi, [esp + 0xe4]
call fcn.0042b849
mov esi, eax
lea edi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
push ebx
lea ecx, [esp + 0xfc]
movsd dword es:[edi], dword [esi]
call fcn.0042b397
pop ecx
push ebx
lea ecx, [esp + 0x204]
mov dword [esp + 0x30], eax
call fcn.0042b397
cmp dword [esp + 0x30], eax
pop ecx
mov dword [esp + 0x34], eax
jne 0x4d4784
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
lea esi, [esp + 0x90]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0d62
push eax
call fcn.0051209e
add esp, 0x24
cmp eax, 0x493e0
jle 0x4d47df
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x108]
push eax
movsd dword es:[edi], dword [esi]
push ebx
sub esp, 0x10
lea esi, [esp + 0x78]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
push ebx
sub esp, 0x10
lea esi, [esp + 0x9c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
push dword [esp + 0x50]
push dword [esp + 0x4c]
push str.:9:TillSheet_Sync_Discrepancy:__ld____ld___s____s:__s:__s
call fcn.004265da
add esp, 0x28
cmp dword [esp + 0x28], ebx
jne 0x4d4924
cmp byte [esp + 0x200], bl
je 0x4d4924
lea eax, [esp + 0x200]
push eax
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.004d28a6
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x28], eax
jle 0x4d4924
lea eax, [esp + 0xf8]
push eax
lea esi, [esp + 0xb4]
call fcn.0042b849
mov esi, eax
lea edi, [esp + 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [esp + 0x200]
movsd dword es:[edi], dword [esi]
push eax
lea esi, [esp + 0xc4]
call fcn.0042b849
mov esi, eax
lea edi, [esp + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
lea esi, [esp + 0xa0]
call fcn.004f2729
push 0xffffffffffffffe2
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xe4]
push eax
movsd dword es:[edi], dword [esi]
call fcn.004f0b0e
add esp, 8
mov edi, esp
lea esi, [esp + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x54], eax
movsd dword es:[edi], dword [esi]
call fcn.004f0922
add esp, 0x20
test eax, eax
jne 0x4d48d2
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x90]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x44]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0922
add esp, 0x20
test eax, eax
je 0x4d4924
push ebx
sub esp, 0x10
lea esi, [esp + 0x74]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
push ebx
sub esp, 0x10
lea esi, [esp + 0x98]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0f28
add esp, 0x14
push eax
push dword [esp + 0x30]
lea eax, [esp + 0x20c]
push eax
lea eax, [esp + 0x108]
push eax
push str.:4:LoadTillSheets___failed:__s:_Trying_backup:__s:_iTillsLoaded_d____s____s
call fcn.004265da
add esp, 0x18
mov eax, dword [esp + 0x28]
add dword [esp + 0x24], eax
call fcn.0048a51a
test eax, eax
jne 0x4d499d
cmp dword [esp + 0x14], 2
jg 0x4d495f
call fcn.004f16be
mov esi, 0xb6
jmp 0x4d4955
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, esi
jb 0x4d4948
jmp 0x4d499d
cmp dword [esp + 0x14], 7
jl 0x4d4977
cmp dword [esp + 0x14], 0xc
jge 0x4d499d
jmp 0x4d498f
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, 0x5c
jb 0x4d496f
jmp 0x4d499d
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, dword [esp + 0x10]
cmp eax, 0x20
jb 0x4d4987
push 0x59d658
call fcn.005120b0
pop ecx
mov ecx, dword [esp + 0x44]
sub ecx, eax
cmp dword [esp + 0x14], ecx
jge 0x4d49e2
call fcn.00415b26
test eax, eax
je 0x4d49e2
mov eax, dword [ebp + 0xc]
push 0x5320c4
inc eax
push eax
push str._Loading_till_sheets..
call fcn.005120b0
add eax, dword [ebp + 8]
pop ecx
add eax, dword [esp + 0x1c]
push eax
call fcn.0041461b
add esp, 0xc
push 0x5320c4
call fcn.00414d11
mov edi, dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
pop ecx
mov eax, dword [edi]
inc dword [esp + 0x14]
lea ecx, [eax + 2]
cmp dword [esp + 0x14], ecx
jl 0x4d44ab
push 0x5484fc
call fcn.00414d11
pop ecx
call fcn.00415b26
test eax, eax
je 0x4d4a2f
push str.Unlocking_server...
lea eax, [ebx + 1]
push eax
push dword [ebp + 8]
call fcn.0041461b
add esp, 0xc
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0046021a
push eax
add ebx, 2
push ebx
push dword [ebp + 8]
mov ecx, 0x534724
call fcn.00413465
add esp, 0x1c
call fcn.0048a51a
test eax, eax
je 0x4d4abc
call fcn.004f16be
sub eax, dword [esp + 0x1c]
cmp eax, 0x2710
jbe 0x4d4a89
call fcn.004f16be
sub eax, dword [esp + 0x10]
push eax
call fcn.004f16be
sub eax, dword [esp + 0x20]
push eax
push str.:2:LoadAllEmpTillSheets___took_too_long:__ldms____ldms.
jmp 0x4d4ab2
call fcn.004f16be
sub eax, dword [esp + 0x1c]
cmp eax, 0x7d0
jbe 0x4d4b0b
call fcn.004f16be
sub eax, dword [esp + 0x10]
push eax
call fcn.004f16be
sub eax, dword [esp + 0x20]
push eax
push str.:1:LoadAllEmpTillSheets___took__ldms____ldms.
call fcn.00426c01
add esp, 0xc
jmp 0x4d4b0b
call fcn.004f16be
push 1
mov edi, eax
call fcn.0046cf18
pop ecx
call fcn.004f16be
mov esi, 0xfa
jmp 0x4d4ae4
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, edi
cmp eax, esi
jb 0x4d4ad7
call fcn.004f16be
mov esi, 0x7d0
jmp 0x4d4b03
push 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004f16be
sub eax, dword [esp + 0x1c]
cmp eax, esi
jb 0x4d4af6
push dword [esp + 0x3c]
push dword [esp + 0x44]
call fcn.004127f9
cmp dword [esp + 0x54], 0
pop ecx
pop ecx
je 0x4d4b29
push 0x64
pop eax
call fcn.00412f0a
lea eax, [esp + 0xf0]
push eax
call fcn.004130aa
mov eax, dword [esp + 0x28]
pop ecx
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051291c
mov esp, ebp
pop ebp
ret 0x18