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

Disassembly:
sub esp, 0x4fc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x514]
mov edx, esi
mov ebp, dword [sym.imp.MSVCRT.dll_mktime]
push edi
xor edi, edi
mov eax, dword [edx]
mov dword [esp + 0x60], edi
mov dword [esp + 0x10], eax
and eax, 0xffff
mov ecx, dword [edx + 4]
sub eax, 0x76c
mov dword [esp + 0x14], ecx
and ecx, 0xffff
mov edx, dword [edx + 8]
mov dword [esp + 0xc8], ecx
mov dword [esp + 0x18], edx
and edx, 0xffff
mov ecx, dword [esp + 0x12]
mov ebx, dword [esp + 0x1a]
mov dword [esp + 0xc0], edx
mov edx, dword [esp + 0x16]
and edx, 0xffff
and ecx, 0xffff
mov dword [esp + 0xc4], edx
xor edx, edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], edx
and ebx, 0xffff
lea eax, [esp + 0xbc]
dec ecx
mov dword [esp + 0xd8], edx
push eax
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xe0], edx
call ebp
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 0x16]
mov dx, word [esi + 0x14]
mov ebx, eax
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edx
xor eax, eax
mov ax, word [esi + 0x12]
xor ecx, ecx
mov cx, word [esi + 0x10]
xor edx, edx
mov dx, word [esi + 0xe]
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], ecx
dec edx
xor eax, eax
xor ecx, ecx
mov ax, word [esi + 0xc]
mov dword [esp + 0x118], edx
mov dword [esp + 0x120], ecx
lea edx, [esp + 0x108]
sub eax, 0x76c
mov dword [esp + 0x124], ecx
push edx
mov dword [esp + 0x120], eax
mov dword [esp + 0x12c], ecx
call ebp
mov ebp, dword [esp + 0x528]
mov dword [esp + 0x9c], eax
xor ecx, ecx
add esp, 8
mov dl, byte [ebp]
sub eax, ebx
mov dword [esp + 0x20], ecx
test dl, 0xf0
je 0x49b46a
mov ecx, dword [ebp + 4]
mov dword [esp + 0x20], ecx
cmp eax, edi
jle 0x49baca
cmp ecx, edi
jle 0x49baca
lea eax, [ecx + eax - 1]
mov esi, dword [0x67a8e4]
cdq
idiv ecx
mov edx, dword [esp + 0x524]
mov dword [esp + 0x6c], 2
test edx, esi
mov ecx, eax
mov eax, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0x68], ecx
je 0x49b4ae
mov eax, 0x50
add eax, 2
imul eax, ecx
add eax, 2
lea esi, [eax*4]
push esi
call fcn.00478f00
mov edx, eax
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
add esp, 4
and ecx, 3
mov dword [esp + 0x24], edx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], ebx
lea ecx, [edx + eax*8 + 8]
mov eax, dword [ebp]
mov esi, eax
mov dword [esp + 0x4c], ecx
and esi, 0x1c0000
lea ecx, [ebp + 0x14]
cmp esi, 0x40000
jne 0x49b50a
mov ecx, 0x585e08
shr eax, 0xc
and eax, 0xf
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x50], eax
mov eax, 1
cmp ecx, eax
mov dword [esp + 0x40], eax
jl 0x49bac0
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x94]
lea eax, [ebx + edx - 1]
cmp eax, ecx
mov dword [esp + 0x44], eax
jle 0x49b548
mov dword [esp + 0x44], ecx
mov esi, dword [sym.imp.MSVCRT.dll_localtime]
lea eax, [esp + 0x28]
push eax
call esi
mov cx, word [eax]
mov dx, word [eax + 4]
mov word [esp + 0x30], cx
mov cx, word [eax + 8]
mov word [esp + 0x32], dx
mov dx, word [eax + 0xc]
mov word [esp + 0x34], cx
mov cx, word [eax + 0x10]
mov word [esp + 0x36], dx
mov dx, word [eax + 0x14]
lea eax, [esp + 0x48]
inc cx
add dx, 0x76c
push eax
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], dx
call esi
mov ebp, eax
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x36]
mov edi, dword [esp + 0x3e]
mov ax, word [ebp + 8]
mov dx, word [ebp + 4]
mov cx, word [ebp]
mov word [esp + 0x1c], ax
mov ax, word [ebp + 0x14]
mov word [esp + 0x1a], dx
mov dx, word [ebp + 0x10]
mov word [esp + 0x18], cx
mov cx, word [ebp + 0xc]
add ax, 0x76c
inc dx
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x38]
mov word [esp + 0x1e], cx
mov ecx, dword [esp + 0x3a]
and esi, 0xffff
mov word [esp + 0x20], dx
mov edx, dword [esp + 0x3c]
and ebx, 0xffff
and eax, 0xffff
push esi
and ecx, 0xffff
push ebx
and edx, 0xffff
push eax
and edi, 0xffff
push ecx
mov dword [esp + 0xa8], ecx
push edx
push edi
lea ecx, [esp + 0x1ac]
push str._04d__02d__02d__02d:_02d:_02d:000000
push ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xe0], edi
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x3e]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3a]
mov edx, dword [esp + 0x3c]
and edi, 0xffff
and eax, 0xffff
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x40]
and edi, 0xffff
and ecx, 0xffff
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x42]
and edx, 0xffff
and edi, 0xffff
mov dword [esp + 0xac], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xdc], edi
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
mov edx, dword [esp + 0x8c]
push edx
push eax
push edi
lea ecx, [esp + 0x18c]
push str._04d__02d__02d__02d:_02d:_02d:999999
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x255]
mov byte [esp + 0x254], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x564]
add esp, 0x48
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x528]
lea edx, [esp + 0x20c]
push edx
push eax
push ecx
call fcn.0047a4d0
mov eax, dword [esp + 0x5c]
add esp, 0xc
cmp eax, 1
jl 0x49b79a
cmp eax, 4
jg 0x49b79a
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x30d]
mov byte [esp + 0x30c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x14c]
lea ecx, [esp + 0x30c]
push edx
mov edx, dword [esp + 0x528]
stosb byte es:[edi], al
mov edi, dword [esp + 0x54]
lea eax, [esp + 0x190]
shr edx, 8
push eax
mov eax, dword [edi*4 + 0x587194]
and edx, 0xf
push ecx
push edx
lea ecx, [esp + 0x21c]
push eax
push ecx
call fcn.0049ac50
mov edx, dword [edi*4 + 0x587194]
add esp, 0x10
push eax
push edx
lea eax, [esp + 0x41c]
push str.select__s__s__from_SrcDat_where_time_between__s_and__s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
jmp 0x49b7cc
test eax, eax
jne 0x49b7cc
lea ecx, [esp + 0x14c]
lea edx, [esp + 0x18c]
push ecx
lea eax, [esp + 0x210]
push edx
push eax
lea ecx, [esp + 0x418]
push str.select___s__from_SrcDat_where_time_between__s_and__s_order_by_time_limit_0_1_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov eax, dword [esp + 0x520]
lea edx, [esp + 0x18c]
mov eax, dword [eax]
and eax, 0x30000
cmp eax, 0x20000
jne 0x49b7f4
lea edx, [esp + 0x14c]
jmp 0x49b947
cmp eax, 0x10000
jne 0x49b947
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x88]
mov edi, dword [sym.imp.MSVCRT.dll_mktime]
mov dword [esp + 0xec], edx
dec eax
xor edx, edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [esp + 0xb8]
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf8], edx
lea eax, [esp + 0xe0]
add ecx, 0xfffff894
mov dword [esp + 0xfc], edx
push eax
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xf8], ecx
mov dword [esp + 0x104], edx
call edi
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x12c], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x130], edx
mov edx, dword [esp + 0x40]
mov esi, eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x138], ecx
dec edx
xor ecx, ecx
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x13c], edx
mov dword [esp + 0x144], ecx
lea edx, [esp + 0x12c]
add eax, 0xfffff894
mov dword [esp + 0x148], ecx
push edx
mov dword [esp + 0x144], eax
mov dword [esp + 0x150], ecx
call edi
inc eax
cdq
sub eax, edx
mov ecx, eax
lea eax, [esi + 1]
cdq
sub eax, edx
lea edx, [esp + 0x88]
sar ecx, 1
sar eax, 1
add ecx, eax
push edx
mov dword [esp + 0x8c], ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov edx, dword [eax + 0x14]
inc ecx
add edx, 0x76c
push ecx
push edx
lea eax, [esp + 0x1f0]
push str._04d__02d__02d__02d:_02d:_02d:000000
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x2c
lea edx, [esp + 0x1cc]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, edx
mov eax, ecx
mov edi, ebx
inc eax
mov ebp, dword [esp + 0x40]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
xor esi, esi
imul ecx, dword [esp + 0x6c]
mov dword [edx + ecx*4], ebx
add ebx, eax
lea eax, [esp + 0xa4]
lea ecx, [esp + 0xa0]
push eax
lea edx, [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0x51c]
lea eax, [esp + 0x414]
push edx
push eax
push ecx
mov dword [esp + 0xac], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], esi
call fcn.00487ef0
mov ecx, eax
call fcn.00487b50
test eax, eax
je 0x49ba4d
mov ecx, dword [esp + 0x9c]
cmp ecx, esi
je 0x49ba4d
cmp dword [esp + 0xa0], esi
jle 0x49ba4d
mov eax, dword [esp + 0xa4]
cmp eax, esi
jle 0x49ba4d
mov edi, dword [ecx + eax*4]
cmp edi, esi
je 0x49ba4d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x520]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax]
and ecx, 0x1c0000
cmp ecx, 0x40000
jne 0x49ba6e
mov dword [esp + 0x54], ebx
jmp 0x49ba6e
mov edi, dword [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebp
mov ecx, dword [esp + 0x24]
imul eax, dword [esp + 0x6c]
mov edi, ebx
mov dword [ecx + eax*4 + 4], ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebx + ecx + 1]
lea ecx, [esp + 0x98]
mov dword [esp + 0x4c], edx
call fcn.00488300
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
inc ebp
add ebx, ecx
cmp ebp, eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x28], ebx
jle 0x49b52d
mov edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x64]
call fcn.00488330
mov eax, dword [esp + 0x510]
mov ecx, 7
lea esi, [esp + 0x60]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4fc
ret 0x1c