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

Disassembly:
sub esp, 0x68
push ebp
push esi
mov ebp, ecx
push 0x265d
call fcn.00487160
mov ecx, eax
call fcn.004839e0
cmp eax, 0x20
jl 0x49dd24
mov eax, 0x20
jmp 0x49dd2a
test eax, eax
jg 0x49dd2a
xor eax, eax
push 0x265e
mov dword [ebp + 8], eax
call fcn.00487160
mov ecx, eax
call fcn.004839e0
mov esi, eax
mov eax, dword [ebp + 0x38c]
cmp eax, esi
je 0x49dd58
push esi
mov ecx, ebp
call fcn.0049e430
mov dword [ebp + 0x38c], esi
push 1
push 0x24d1
call fcn.00487160
mov ecx, eax
call fcn.00483920
test eax, eax
je 0x49e003
mov eax, dword [ebp + 0x38c]
push ebx
push edi
push eax
mov ecx, ebp
call fcn.0049e5c0
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x49dfe4
mov ecx, 7
mov esi, ebx
lea edi, [esp + 0x38]
mov al, 2
rep movsd dword es:[edi], dword [esi]
mov cl, byte [0x6599e6]
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.00487160
mov ecx, eax
call fcn.00482d80
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 0x49de46
mov dword [esp + 0x60], 1
mov eax, dword [esp + 0x1a]
and eax, 0xffff
cmp eax, 1
jg 0x49de59
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 0x49de7d
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 0x49dfda
mov ecx, 9
lea edi, [esp + 0x54]
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x49dfda
push 0x265f
call fcn.00487160
mov ecx, eax
call fcn.004839e0
push 0x2666
mov dword [esp + 0x40], eax
call fcn.00487160
mov ecx, eax
call fcn.00483aa0
test eax, eax
jbe 0x49dfd6
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.0049e1b0
mov eax, dword [ebp + 8]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x49df94
lea ebx, [ebp + 0xc]
push esi
call fcn.0049d8b0
mov ecx, eax
call fcn.0049d6a0
test eax, eax
je 0x49df69
cmp ebx, dword [esp + 0x10]
je 0x49df69
mov eax, dword [ebx]
mov ecx, dword [ebp + 0x38c]
and eax, 0xf
cmp eax, ecx
je 0x49df69
mov ecx, 4
lea edi, [ebx + 0xc]
lea esi, [esp + 0x44]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x49df7e
mov eax, dword [esp + 0x40]
mov ecx, dword [ebx + 8]
cmp eax, ecx
je 0x49df82
mov esi, dword [esp + 0x14]
mov eax, dword [ebp + 8]
inc esi
add ebx, 0x1c
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x49df22
mov ebx, dword [esp + 0x10]
jmp 0x49df94
push 0x2a
jmp 0x49df84
push 0x29
call fcn.0049bfc0
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add esp, 4
cmp esi, dword [ebp + 8]
jl 0x49dfe4
mov ecx, 7
lea esi, [esp + 0x38]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
call fcn.0049e3c0
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.0049d8b0
mov ecx, eax
call fcn.0049d7b0
push 0x23
jmp 0x49dfdc
push 0x2b
jmp 0x49dfdc
push 0x29
call fcn.0049bfc0
add esp, 4
push 1
push 0x24d1
call fcn.00487160
mov ecx, eax
call fcn.004838e0
mov ecx, 0x8d72c8
call fcn.004cf9f0
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x68
ret