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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58fa9d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x21b8
call fcn.0057af70
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x21b4], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x21c8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0x110]
mov dword [esp + 0x90], esi
test esi, esi
je 0x4c4585
mov eax, dword [esi]
test eax, eax
je 0x4c4585
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x21d0], 0
xor eax, eax
push 0x1ffe
push eax
mov word [esp + 0x1c4], ax
lea eax, [esp + 0x1c6]
push eax
mov byte [edi + 0x114], 1
call fcn.0056cbb0
add esp, 0xc
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
lea eax, [esp + 0x1c4]
push 0xffc
push 0x1000
push eax
call fcn.005696ae
xor eax, eax
add esp, 0x14
mov word [esp + 0x94], ax
xorps xmm0, xmm0
mov dword [esp + 0x9e], eax
mov word [esp + 0xa2], ax
lea eax, [esp + 0x94]
push eax
movq qword [esp + 0x9a], xmm0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
push 0xfe
push eax
mov word [esp + 0xc4], ax
lea eax, [esp + 0xc6]
push eax
call fcn.0056cbb0
movzx eax, word [esp + 0xae]
add esp, 0xc
push eax
movzx eax, word [esp + 0xa4]
push eax
movzx eax, word [esp + 0xa6]
push eax
movzx eax, word [esp + 0xa8]
push eax
movzx eax, word [esp + 0xaa]
push eax
movzx eax, word [esp + 0xaa]
push eax
movzx eax, word [esp + 0xac]
push eax
push str._04u__02u__02u__02u:_02u:_02u._03u
lea eax, [esp + 0xdc]
push 0x80
push eax
call fcn.0056a3dd
xor eax, eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x28
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
mov byte [esp + 0x21d0], 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], eax
mov word [esp + 0x60], ax
mov byte [esp + 0x21d0], 3
cmp word [esp + 0xbc], ax
jne 0x4c46e2
xor ecx, ecx
jmp 0x4c46ff
lea ecx, [esp + 0xbc]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c46f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x48]
call fcn.00404a80
cmp word [esp + 0x1bc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
jne 0x4c472e
xor ecx, ecx
jmp 0x4c474f
lea ecx, [esp + 0x1bc]
lea edx, [ecx + 2]
jmp 0x4c4740
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c4740
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x1c0]
push eax
lea ecx, [esp + 0x68]
call fcn.00404a80
xorps xmm0, xmm0
mov dword [esp + 0x80], 0
movq qword [esp + 0x78], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x21d0], 4
movq qword [esp + 0x84], xmm0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov byte [esp + 0x21d0], 5
xor eax, eax
push 4
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0
push str.time
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
call fcn.00404a80
mov byte [esp + 0x21d0], 6
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x7c]
call fcn.004b3d90
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0x3c], 8
jb 0x4c483d
push dword [esp + 0x28]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
lea ecx, [esp + 0x84]
lea eax, [esp + 0x40]
mov dword [esp + 0x38], 0
push eax
call fcn.0040be40
push 5
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
push str.level
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00404a80
mov byte [esp + 0x21d0], 7
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
call fcn.004b3d90
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0x24], 8
jb 0x4c48cd
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x28]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
call fcn.004b0130
mov byte [esp + 0x21d0], 8
lea ecx, [esp + 0x84]
push eax
call fcn.004b3d90
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0x3c], 8
jb 0x4c4921
push dword [esp + 0x28]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
push 3
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
push 0x5bad28
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
call fcn.00404a80
mov byte [esp + 0x21d0], 9
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
call fcn.004b3d90
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0x24], 8
jb 0x4c4992
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
mov edx, dword [esp + 0x5c]
lea ecx, [esp + 0x28]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
call fcn.004b0130
mov byte [esp + 0x21d0], 0xa
lea ecx, [esp + 0x84]
push eax
call fcn.004b3d90
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0x3c], 8
jb 0x4c49e6
push dword [esp + 0x28]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x3c], 7
push 4
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
push str.info
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
call fcn.00404a80
mov byte [esp + 0x21d0], 0xb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x7c]
call fcn.004b3d90
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0x24], 8
jb 0x4c4a57
push dword [esp + 0x10]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0x24], 7
mov word [esp + 0x10], ax
lea ecx, [esp + 0x84]
lea eax, [esp + 0x60]
mov dword [esp + 0x20], 0
push eax
call fcn.0040be40
xor eax, eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
mov byte [esp + 0x21d0], 0xc
mov eax, dword [esp + 0x5c]
sub eax, 0
je 0x4c4ade
dec eax
je 0x4c4ad5
dec eax
jne 0x4c4af1
push 5
push str.E0003
jmp 0x4c4ae5
push 5
push str.E0002
jmp 0x4c4ae5
push 5
push str.E0001
lea ecx, [esp + 0xac]
call fcn.00404a80
mov eax, dword [0x7e2574]
test al, 1
jne 0x4c4b2e
or eax, 1
mov dword [0x7e2574], eax
mov byte [esp + 0x21d0], 0xd
mov dword [0x7e2578], 0
call fcn.004cd440
push 0x5a0140
call fcn.00565027
add esp, 4
mov byte [esp + 0x21d0], 0xc
mov ecx, dword [0x7e2578]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xac]
push eax
call fcn.00510fb0
mov byte [esp + 0x21d0], 5
cmp dword [esp + 0xb8], 8
jb 0x4c4b6f
push dword [esp + 0xa4]
call fcn.00564de3
add esp, 4
xor eax, eax
mov dword [esp + 0xb8], 7
mov dword [esp + 0xb4], 0
mov word [esp + 0xa4], ax
mov byte [esp + 0x21d0], 4
mov edi, dword [esp + 0x84]
test edi, edi
je 0x4c4be2
push dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push ecx
mov ecx, edi
call fcn.0040d3f0
push edi
call fcn.00564de3
add esp, 0xc
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov byte [esp + 0x21d0], 3
mov edi, dword [esp + 0x78]
test edi, edi
je 0x4c4c2c
push dword [esp + 0x90]
mov edx, dword [esp + 0x80]
push ecx
mov ecx, edi
call fcn.0040d3f0
push edi
call fcn.00564de3
add esp, 0xc
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x21d0], 0
lea ecx, [esp + 0x40]
call fcn.004c4c90
mov dword [esp + 0x21d0], 0xffffffff
test esi, esi
je 0x4c4c64
mov eax, dword [esi]
test eax, eax
je 0x4c4c59
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esp + 0x90], 0
mov al, 1
mov ecx, dword [esp + 0x21c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x21b4]
xor ecx, esp
call fcn.00564de8
mov esp, ebp
pop ebp
ret