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

Disassembly:
sub esp, 0x68
push ebp
push esi
mov ebp, ecx
push 0x265d
call fcn.00493e00
mov ecx, eax
call fcn.00490510
cmp eax, 0x20
jl 0x4afce4
mov eax, 0x20
jmp 0x4afcea
test eax, eax
jg 0x4afcea
xor eax, eax
push 0x265e
mov dword [ebp + 8], eax
call fcn.00493e00
mov ecx, eax
call fcn.00490510
mov esi, eax
mov eax, dword [ebp + 0x38c]
cmp eax, esi
je 0x4afd18
push esi
mov ecx, ebp
call fcn.004b0400
mov dword [ebp + 0x38c], esi
push 1
push 0x24d1
call fcn.00493e00
mov ecx, eax
call fcn.00490450
test eax, eax
je 0x4affc3
mov eax, dword [ebp + 0x38c]
push ebx
push edi
push eax
mov ecx, ebp
call fcn.004b0590
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x4affa4
mov ecx, 7
mov esi, ebx
lea edi, [esp + 0x38]
mov al, 2
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x67a87e]
mov byte [esp + 0x2b], al
mov byte [esp + 0x2c], al
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
xor esi, esi
push edx
push eax
mov byte [esp + 0x30], cl
mov byte [esp + 0x31], 0
mov byte [esp + 0x32], 0
mov byte [esp + 0x35], 0xff
mov word [esp + 0x36], si
mov dword [esp + 0x38], 0x2660
mov word [esp + 0x3c], 6
mov word [esp + 0x3e], si
call fcn.00493e00
mov ecx, eax
call fcn.0048f880
mov eax, dword [esp + 0x22]
mov ecx, 0x3c
and eax, 0xffff
cdq
idiv ecx
mov eax, dword [esp + 0x20]
and eax, 0xffff
mov dword [esp + 0x54], edx
cdq
idiv ecx
mov eax, dword [esp + 0x1e]
mov ecx, 0x18
and eax, 0xffff
mov dword [esp + 0x58], edx
cdq
idiv ecx
mov eax, dword [esp + 0x1c]
and eax, 0xffff
cmp eax, 1
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edx
jg 0x4afe06
mov dword [esp + 0x60], 1
mov eax, dword [esp + 0x1a]
and eax, 0xffff
cmp eax, 1
jg 0x4afe19
mov eax, 1
dec eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x18]
and eax, 0xffff
sub eax, 0x76c
cmp eax, 0x47
mov dword [esp + 0x68], eax
jg 0x4afe3d
mov dword [esp + 0x68], 0x47
xor edx, edx
lea eax, [esp + 0x54]
mov dword [esp + 0x6c], edx
push eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
call dword [sym.imp.MSVCRT.dll_mktime]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], eax
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
add esp, 8
cmp eax, esi
je 0x4aff9a
mov ecx, 9
lea edi, [esp + 0x54]
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4aff9a
push 0x265f
call fcn.00493e00
mov ecx, eax
call fcn.00490510
push 0x2666
mov dword [esp + 0x40], eax
call fcn.00493e00
mov ecx, eax
call fcn.004905d0
test eax, eax
jbe 0x4aff96
xor ecx, ecx
lea edx, [esp + 0x44]
mov dword [esp + 0x44], ecx
push edx
mov dword [esp + 0x4c], ecx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov ecx, ebp
call fcn.004b0170
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x4aff54
lea ebx, [ebp + 0xc]
push esi
call fcn.004af870
mov ecx, eax
call fcn.004af660
test eax, eax
je 0x4aff29
cmp ebx, dword [esp + 0x10]
je 0x4aff29
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x38c]
and eax, 0xf
cmp eax, ecx
je 0x4aff29
mov ecx, 4
lea edi, [ebx + 0xc]
lea esi, [esp + 0x44]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4aff3e
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + 8]
cmp eax, ecx
je 0x4aff42
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
inc esi
add ebx, 0x1c
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x4afee2
mov ebx, dword [esp + 0x10]
jmp 0x4aff54
push 0x2a
jmp 0x4aff44
push 0x29
call fcn.004ab020
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, dword [ebp + 8]
jl 0x4affa4
mov ecx, 7
lea esi, [esp + 0x38]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.004b0380
sub ebx, ebp
mov eax, 0x92492493
sub ebx, 0xc
imul ebx
add edx, ebx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
push edx
call fcn.004af870
mov ecx, eax
call fcn.004af770
push 0x23
jmp 0x4aff9c
push 0x2b
jmp 0x4aff9c
push 0x29
call fcn.004ab020
add esp, 4
push 1
push 0x24d1
call fcn.00493e00
mov ecx, eax
call fcn.00490410
mov ecx, 0x940b40
call fcn.004e55e0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x68
ret