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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50e10f
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x5723f8]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x5723f8]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x118]
cmp eax, 0x5dc
jne 0x40b360
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp + 0x154]
call fcn.00488706
mov dword [esp + 0x1f0], 0
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
push eax
movzx eax, word [esp + 0x4a]
push eax
movzx eax, word [esp + 0x4a]
push eax
movzx eax, word [esp + 0x4c]
push eax
lea eax, [esp + 0x168]
push str._04d__02d__02d__02d:_02d
push eax
call fcn.00488c87
add esp, 0x1c
lea ecx, [esp + 0xcc]
call fcn.00488706
mov byte [esp + 0x1f0], 1
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
push eax
lea eax, [esp + 0xd4]
push str._02d:_02d
push eax
call fcn.00488c87
mov ecx, dword [0x57dd04]
mov eax, 0x66666667
sub ecx, dword [0x57dd00]
xor esi, esi
imul ecx
add esp, 0x10
mov dword [esp + 0x10], esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40b330
xor ebx, ebx
mov dword [esp + 0x20], ebx
add ebx, dword [0x57dd00]
mov dword [esp + 0x1c], ebx
cmp dword [ebx], 0
je 0x40b2fb
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x40b12f
lea ecx, [esp + 0x154]
call fcn.004888ce
mov edx, eax
mov dword [esp + 0x38], 7
xor eax, eax
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
cmp word [edx], ax
jne 0x40af7f
xor ecx, ecx
jmp 0x40af97
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af84
sub ecx, esi
mov esi, dword [esp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x2c]
call fcn.00403630
mov byte [esp + 0x1f0], 2
lea eax, [esp + 0x24]
cmp dword [esp + 0x38], 8
lea ecx, [ebx + 0x1c]
push dword [esp + 0x34]
cmovae eax, dword [esp + 0x28]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.00406310
test eax, eax
mov byte [esp + 0x1f0], 1
sete bl
cmp dword [esp + 0x38], 8
jb 0x40afe9
push dword [esp + 0x24]
call fcn.0044ef7f
add esp, 4
test bl, bl
je 0x40b2fb
mov esi, dword [edi + 0xc18]
lea eax, [edi + 0xc18]
mov edi, dword [eax + 4]
xor bl, bl
cmp esi, edi
je 0x40b042
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x14], 8
jb 0x40b01b
mov eax, dword [esi]
jmp 0x40b01d
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.00406310
mov ecx, dword [esp + 0x14]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
add esi, 0x1c
cmp esi, edi
jne 0x40b011
test bl, bl
jne 0x40b2f3
xor eax, eax
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x80]
add esi, 4
mov byte [esp + 0x1f0], 3
cmp eax, esi
je 0x40b090
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004024f0
movzx eax, word [esp + 0x46]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x80]
push eax
lea ecx, [edi + 0xc18]
call fcn.0040b6a0
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.004024f0
mov byte [esp + 0x208], 4
mov ecx, dword [0x57d3e8]
test ecx, ecx
je 0x40b0f1
call fcn.0047e500
jmp 0x40b0f3
xor eax, eax
mov ecx, eax
mov byte [esp + 0x208], 3
call fcn.00404150
add esp, 0x18
mov byte [esp + 0x1f0], 1
cmp dword [esp + 0x94], 8
jb 0x40b2f7
push dword [esp + 0x80]
call fcn.0044ef7f
add esp, 4
jmp 0x40b2f7
cmp eax, 1
jne 0x40b2fb
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x1c]
push 0xffffffffffffffff
add eax, 0xfffffffb
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004064c0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1f0], 5
call fcn.004888ce
push eax
lea ecx, [esp + 0x50]
call fcn.00407310
mov byte [esp + 0x1f0], 6
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x40b17f
mov eax, dword [eax]
push ecx
push eax
push dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x34]
call fcn.00406310
test eax, eax
mov byte [esp + 0x1f0], 5
sete bl
cmp dword [esp + 0x60], 8
jb 0x40b1af
push dword [esp + 0x4c]
call fcn.0044ef7f
add esp, 4
test bl, bl
je 0x40b2d6
mov esi, dword [edi + 0xc18]
lea eax, [edi + 0xc18]
mov edi, dword [eax + 4]
xor bl, bl
cmp esi, edi
je 0x40b208
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x14], 8
jb 0x40b1e1
mov eax, dword [esi]
jmp 0x40b1e3
mov eax, esi
push dword [esi + 0x10]
push eax
push dword [ecx + 0x10]
push ecx
call fcn.00406310
mov ecx, dword [esp + 0x14]
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
add esi, 0x1c
cmp esi, edi
jne 0x40b1d7
test bl, bl
jne 0x40b2ce
xor eax, eax
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], 0
mov word [esp + 0x64], ax
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x64]
add esi, 4
mov byte [esp + 0x1f0], 7
cmp eax, esi
je 0x40b24a
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.004024f0
movzx eax, word [esp + 0x46]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x64]
push eax
lea ecx, [edi + 0xc18]
call fcn.0040b6a0
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.004024f0
mov byte [esp + 0x208], 8
mov ecx, dword [0x57d3e8]
test ecx, ecx
je 0x40b2a5
call fcn.0047e500
jmp 0x40b2a7
xor eax, eax
mov ecx, eax
mov byte [esp + 0x208], 7
call fcn.00404150
add esp, 0x18
cmp dword [esp + 0x78], 8
jb 0x40b2d2
push dword [esp + 0x64]
call fcn.0044ef7f
add esp, 4
jmp 0x40b2d2
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x1f0], 1
cmp dword [esp + 0x38], 8
jb 0x40b2fb
push dword [esp + 0x24]
call fcn.0044ef7f
add esp, 4
jmp 0x40b2fb
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [0x57dd04]
mov eax, 0x66666667
sub ecx, dword [0x57dd00]
inc esi
mov ebx, dword [esp + 0x20]
imul ecx
add ebx, 0x50
mov dword [esp + 0x10], esi
sar edx, 5
mov eax, edx
mov dword [esp + 0x20], ebx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x40af33
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1f0], 0
call fcn.004887ca
lea ecx, [esp + 0x154]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.004887ca
jmp 0x40b4b8
cmp eax, 0x5dd
jne 0x40b3e6
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, dword [esp + 0x18]
mov eax, 0x92492493
add ebx, 0xc18
xor edi, edi
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40b4b8
xor esi, esi
mov eax, dword [ebx]
movzx ecx, word [esp + 0x46]
add eax, esi
cmp dword [eax + 0x18], ecx
je 0x40b3c1
push eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.0040b780
dec edi
sub esi, 0x1c
mov ecx, dword [ebx + 4]
mov eax, 0x92492493
sub ecx, dword [ebx]
inc edi
imul ecx
add esi, 0x1c
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40b3a2
jmp 0x40b4b8
cmp eax, 0x5de
jne 0x40b4b8
cmp dword [0x5739fc], 0
je 0x40b4b8
push 0x5368f8
lea ecx, [esp + 0x50]
mov dword [0x5739fc], 0
call fcn.004072b0
push 0x536534
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1f4], 9
call fcn.00407310
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x1f4], 0xa
call fcn.0040b9c0
mov edx, eax
mov byte [esp + 0x1f4], 0xb
lea ecx, [esp + 0x28]
call fcn.00408600
add esp, 4
lea ecx, [esp + 0xb4]
call fcn.004028d0
lea ecx, [esp + 0x9c]
mov byte [esp + 0x1f0], 0xe
call fcn.004028d0
call fcn.00412fe0
cmp dword [esp + 0x38], 0x10
lea edx, [esp + 0x24]
push dword [edi + 4]
cmovae edx, dword [esp + 0x28]
lea ecx, [esp + 0x50]
cmp dword [esp + 0x64], 0x10
cmovae ecx, dword [esp + 0x50]
call fcn.0041a430
lea ecx, [esp + 0x24]
call fcn.00406cf0
lea ecx, [esp + 0x4c]
call fcn.00406cf0
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.0044ed21
mov esp, ebp
pop ebp
ret 4