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

Disassembly:
push 0xffffffffffffffff
push 0x497816
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov eax, dword [0x4bfcf8]
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xe8], ebx
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0xf0]
lea ecx, [esp + 0x14]
mov byte [esp + 0xe8], 1
lea eax, [ebp + 0x478]
push eax
call fcn.0047386e
lea ecx, [ebp + 0x5e0]
lea edx, [esp + 0x10]
push ecx
push 0x4be39c
push edx
call fcn.0046c3e9
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push 0x4be42c
call fcn.0046bd25
lea ecx, [ebp + 0x60c]
push ecx
push 0x4be428
lea ecx, [esp + 0x1c]
call fcn.0046bd25
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea edx, [ebp + 0x584]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40e15e
mov edi, str.dd_MMMM_yyyy
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40e1b4
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor eax, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x38]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40e1b4
cmp byte [esp + edx + 0x38], 0x6d
jne 0x40e1a1
mov byte [esp + edx + 0x38], 0x4d
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x40e195
lea ecx, [esp + 0x78]
push 0x28
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea ecx, [esp + 0x78]
push ecx
push 0x4be414
lea ecx, [esp + 0x1c]
call fcn.0046bd25
lea edx, [ebp + 0x594]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40e21c
mov edi, str.HH_mm
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xa0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x40e23f
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, esi
mov edx, ecx
mov esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x28
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0xa4]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea ecx, [esp + 0x78]
push ecx
push 0x4be408
lea ecx, [esp + 0x1c]
call fcn.0046bd25
mov edx, dword [ebp + 0x148]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040cf50
add esp, 8
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x4be404
mov byte [esp + 0xf0], 2
call fcn.0046bd25
lea ecx, [esp + 0x18]
mov byte [esp + 0xe8], 1
call fcn.004736e5
push 0x4c2a80
lea ecx, [esp + 0x14]
call fcn.0047386e
mov eax, dword [ebp + 0x148]
cmp eax, 0x76
je 0x40e2dc
cmp eax, 0x79
je 0x40e2dc
cmp eax, 0x7c
jne 0x40e374
mov eax, dword [ebp + 0x18b0]
mov ebx, 2
cmp eax, ebx
jne 0x40e310
lea ecx, [esp + 0x24]
push 0x82
push ecx
call fcn.0040cf50
mov ebx, 1
add esp, 8
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xe8], 3
jmp 0x40e331
lea edx, [esp + 0x18]
push 0x81
push edx
call fcn.0040cf50
add esp, 8
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xe8], 4
push eax
lea ecx, [esp + 0x14]
call fcn.0047381e
test bl, 2
mov dword [esp + 0xe8], 3
je 0x40e35b
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.004736e5
test bl, 1
mov dword [esp + 0xe8], 1
je 0x40e374
lea ecx, [esp + 0x24]
call fcn.004736e5
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push 0x4be400
call fcn.0046bd25
lea ecx, [esp + 0x10]
call fcn.00473670
push str._:____
lea ecx, [esp + 0x24]
call fcn.00473753
mov eax, dword [esp + 0x20]
xor esi, esi
mov byte [esp + 0xe8], 5
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40e3d2
mov cl, byte [esi + eax]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.0046be88
mov eax, dword [esp + 0x20]
inc esi
cmp esi, dword [eax - 8]
jl 0x40e3b3
mov eax, dword [ebp + 0x57c]
test eax, eax
je 0x40e3ef
push 0x4be3f0
push 0x4bbc54
lea ecx, [esp + 0x1c]
call fcn.0046bd25
add ebp, 0x374
lea ecx, [esp + 0x10]
push ebp
call fcn.0047386e
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40e41b
push 0x4bb818
lea ecx, [esp + 0x14]
call fcn.00473a4d
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
call fcn.00473a89
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xe8], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xf4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.004736e5
lea ecx, [esp + 0x10]
mov byte [esp + 0xe8], 0
call fcn.004736e5
lea ecx, [esp + 0x14]
mov dword [esp + 0xe8], 0xffffffff
call fcn.004736e5
mov ecx, dword [esp + 0xe0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xdc
ret